Change the xcode project to pick up sqVirtualMachine.c and sqVirtualMachine.h from platforms/Cross/vm, not from  he temporary testing ones John is using in platforms/Cross/plugins/IA32ABI.

Get back to me if you need help doing this with xcode.

I got bit by this yesterday :)

On Thu, Feb 19, 2009 at 3:39 AM, Esteban Lorenzano <estebanlm@gmail.com> wrote:

I  tried to compile de VM with latest sources from squeakvm.org.
I followed all the readme instructions, and I needed to drop Squeak3D files and export info. 

However, I still have this error when linking: 

    cd /Users/MAC/Desktop/Dev/Mars
    /Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/MAC/Desktop/Dev/Mars/build/Development -F/Users/MAC/Desktop/Dev/Mars/build/Development -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks -filelist "/Users/MAC/Desktop/Dev/Mars/build/SqueakVMUNIXPATHS.build/Development/Squeak VM Universal.build/Objects-normal/i386/Squeak VM Opt.LinkFileList" -mmacosx-version-min=10.4 -framework CoreFoundation -framework Carbon -framework OpenGL -framework AGL -framework QuickTime -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Foundation -framework Cocoa -prebind -o "/Users/MAC/Desktop/Dev/Mars/build/Development/Squeak VM Opt.app/Contents/MacOS/Squeak VM Opt"
Undefined symbols:
  "_primitiveFailFor", referenced from:
      _primitiveFailFor$non_lazy_ptr in sqVirtualMachine.o
  "_reestablishContextPriorToCallback", referenced from:
      _reestablishContextPriorToCallback$non_lazy_ptr in sqVirtualMachine.o
  "_internalIsImmutable", referenced from:
      _internalIsImmutable$non_lazy_ptr in sqVirtualMachine.o
  "_classAlien", referenced from:
      _classAlien$non_lazy_ptr in sqVirtualMachine.o
  "_sendInvokeCallbackStackRegistersJmpbuf", referenced from:
      _sendInvokeCallbackStackRegistersJmpbuf$non_lazy_ptr in sqVirtualMachine.o
  "_getStackPointer", referenced from:
      _getStackPointer$non_lazy_ptr in sqVirtualMachine.o
  "_sqAllocateMemory", referenced from:
      _readImageFromFileHeapSizeStartingAt in interp.o
  "_classUnsafeAlien", referenced from:
      _classUnsafeAlien$non_lazy_ptr in sqVirtualMachine.o
  "_internalIsMutable", referenced from:
      _internalIsMutable$non_lazy_ptr in sqVirtualMachine.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
         "_primitiveFailFor", referenced from:
             _primitiveFailFor$non_lazy_ptr in sqVirtualMachine.o
         "_reestablishContextPriorToCallback", referenced from:
             _reestablishContextPriorToCallback$non_lazy_ptr in sqVirtualMachine.o
         "_internalIsImmutable", referenced from:
             _internalIsImmutable$non_lazy_ptr in sqVirtualMachine.o
         "_classAlien", referenced from:
             _classAlien$non_lazy_ptr in sqVirtualMachine.o
         "_sendInvokeCallbackStackRegistersJmpbuf", referenced from:
             _sendInvokeCallbackStackRegistersJmpbuf$non_lazy_ptr in sqVirtualMachine.o
         "_getStackPointer", referenced from:
             _getStackPointer$non_lazy_ptr in sqVirtualMachine.o
         "_sqAllocateMemory", referenced from:
             _readImageFromFileHeapSizeStartingAt in interp.o
         "_classUnsafeAlien", referenced from:
             _classUnsafeAlien$non_lazy_ptr in sqVirtualMachine.o
         "_internalIsMutable", referenced from:
             _internalIsMutable$non_lazy_ptr in sqVirtualMachine.o
       ld: symbol(s) not found
       collect2: ld returned 1 exit status

Any idea what I missed?

Thanks, 
Esteban