[Vm-dev] How to use Croquet VMMaker

Andreas Raab andreas.raab at gmx.de
Tue Feb 5 07:15:03 UTC 2008


ioGetWindowLabel/ioSetWindowLabel

Matthew Fulmer wrote:
> /bin/sh /home/matthewf/squeak/vm/hydravm-trunk-base/unixbuild/libtool --mode=link gcc -g -O2 -fomit-frame-pointer -DLSB_FIRST=1    -export-dynamic -R/usr/local/lib -o squeak vm/vm.a FilePlugin/FilePlugin.a SocketPlugin/SocketPlugin.a disabledPlugins.o version.o -lutil -ldl -lm -lnsl   vm/vm.a
> gcc -g -O2 -fomit-frame-pointer -DLSB_FIRST=1 -o squeak disabledPlugins.o version.o -Wl,--export-dynamic  vm/vm.a FilePlugin/FilePlugin.a SocketPlugin/SocketPlugin.a -lutil -ldl -lm -lnsl vm/vm.a -Wl,--rpath -Wl,/usr/local/lib
> vm/vm.a(gnu-interp.o): In function `primitiveGetWindowLabel':
> /home/matthewf/squeak/vm/hydravm-trunk-base/unixbuild/vm/gnu-interp.c:15141: undefined reference to `ioGetWindowLabel'
> vm/vm.a(gnu-interp.o): In function `primitiveSetWindowLabel':
> /home/matthewf/squeak/vm/hydravm-trunk-base/unixbuild/vm/gnu-interp.c:18770: undefined reference to `ioSetWindowLabelOfSize'
> collect2: ld returned 1 exit status

These are support functions that are currently not implemented in the 
Unix/Mac VMs (we use them to get/set the main window title directly). 
Here is how to stub them (best done in sqUnixMain.c):

char* ioGetWindowLabel(void) {return "";}
sqInt ioSetWindowLabelOfSize(void* lbl, sqInt size) {return 0;}

This should do the trick.

Cheers,
   - Andreas



More information about the Vm-dev mailing list