• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Linking DefaultRuneLocale?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Linking DefaultRuneLocale? (From: Ian Joyner <email@hidden>)

  • Prev by Date: Re: Prefix/precompiled header has no effect
  • Next by Date: Making .dSYM fails
  • Previous by thread: Linking DefaultRuneLocale?
  • Next by thread: Re: Linking DefaultRuneLocale?
  • Index(es):
    • Date
    • Thread