Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking DefaultRuneLocale?




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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Linking DefaultRuneLocale? (From: Ian Joyner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.