Marc --
Thanks -- changing to the 5 SDK did the trick to get me going. If I end up running into problems, install the 4u SDK and drop back.
Thanks,
Ted C. On Oct 2, 2009, at 6:29 AM, Marc Feeley wrote:
On 2-Oct-09, at 1:34 AM, Ted Carroll wrote:
All --
I'm trying Gambit for the first time on my OS X Snow Leopard machine with XCode 3.2 and I'm getting errors (can't find limits.h). If I set GAMBC_CC_VERBOSE=yes, the command line for gcc is the following:
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -no-cpp-
precomp -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno- trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer - fPIC - fno-common -mieee-fp -I"/Library/Gambit-C/v4.5.2/include" -c -o "foo.o" foo.c
The problem (I guess) is that the listed SDK isn't installed. Any way I can specify a different one? Here are the ones installed:
ls /Developer/SDKs/
MacOSX10.5.sdk MacOSX10.6.sdk
Thanks,
Ted C.
When you install XCode you are given the option to install other SDKs and you can then select to install the 10.4 SDK.
But this is really just for backward compatibility. If you will not be running on Mac OS X 10.4 then remove the "-isysroot /Developer/ SDKs/MacOSX10.4u.sdk" from ~~bin/gambc-cc.bat (i.e. /Library/Gambit- C/v4.5.2/bin/gambc-cc.bat). I'm not sure if changing the 4 to a 5 or 6 will also work. Another option is to recompile Gambit from the sources.
Marc