ObjectiveCPlugin, VMMaker usage

Damien Pollet damien.pollet at gmail.com
Sun Jun 25 03:02:31 UTC 2006


OK, following Goran's instructions at http://goran.krampe.se/blog, I
can now build a VM. But when I add a plugin (ObjC or GTK) I get
strange compile errors...

for the ObjC plugin:

In file included from Squeak-3.9-7/build/config.h:184,
                 from Squeak-3.9-7/platforms/Cross/vm/sqMemoryAccess.h:19,
                 from Squeak-3.9-7/platforms/Cross/vm/sqVirtualMachine.h:15,
                 from
Squeak-3.9-7/platforms/unix/plugins/ObjectiveCPlugin/sqUnixObjC.m:2:
Squeak-3.9-7/platforms/unix/vm/glibc.h:6: error: syntax error before 'c'
Squeak-3.9-7/platforms/unix/vm/glibc.h:6: error: syntax error before '&' token
Squeak-3.9-7/platforms/unix/vm/glibc.h:7: error: syntax error before 'c'
[...]

is it a compiler problem, or some preprocessor stuff that the objc
compiler doesn't like ?

for the GtkPlugin:

Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c: In
function 'GenericCallback':
Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c:123:
error: 'struct VirtualMachine' has no member named 'callbackEnter'
Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c: In
function 'gReturnFromCallback':
Squeak-3.9-7/platforms/unix/plugins/GtkPlugin/sqUnixGtkPrims.c:149:
error: 'struct VirtualMachine' has no member named 'callbackLeave'

This one is really funny because I grepped the sources (both 3.9-7 and
svn) and these identifiers appear nowhere else...

I'm on Linux x86, using GNUstep for the Foundation libs. Any idea?

-- 
 Damien Pollet
 type less, do more



More information about the Vm-dev mailing list