Re: Linking DefaultRuneLocale?
Re: Linking DefaultRuneLocale?
- Subject: Re: Linking DefaultRuneLocale?
- From: "Peter O'Gorman" <email@hidden>
- Date: Sat, 28 Apr 2007 22:26:48 -0500
On Apr 27, 2007, at 10:28 PM, Ian Joyner wrote:
I believe that DefaultRuneLocale might be in libSystem.dylib in the
OS 10.4 sdk, but how do I get gcc to link to it (without Xcode)? My
link command looks like:
gcc -o sample -O0 -pipe -no-cpp-precomp -fno-common -fPIC -I. -
I../../../.. C1/Cobj1.o E1/eoption.o ../../../build/
Debug/Obj-C.o -framework AppKit -framework Foundation -framework
CoreData /Developer/SDKs/MacOSX10.4.0.sdk/usr/lib/libSystem.dylib -lm
use -isysroot
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o sample -O0 -pipe -
no-cpp-precomp -fno-common -fPIC -I. -I../../../.. C1/Cobj1.o E1/
eoption.o ../../../build/Debug/Obj-C.o -framework AppKit -
framework Foundation -framework CoreData
No need to add libSystem directly, gcc always tags it on the end when
it calls the linker. Also, not good to mix SDK stuff and non-SDK stuff.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden