• 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: [Xcode-users] Linking static curl lib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xcode-users] Linking static curl lib


  • Subject: Re: [Xcode-users] Linking static curl lib
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 26 Nov 2008 10:24:18 +0100


Le 26 nov. 08 à 05:45, Nick Zitzmann a écrit :


On Nov 25, 2008, at 9:28 PM, David Cohn wrote:

Yes, that works... and the build does too... I guess "-lcurl" somehow specifies that the system paths are searched before "-L" paths?


No; the problem you've encountered is the linker always prefers dynamic libraries over static ones when using the "-l" option, and there is no way to change this behavior. There are, however, workarounds.

Yes, and my favorite workaround is to simply rename the static library to avoid conflict with dynamic one. libscurl.a for example and then use -lscurl or simply add it to your project, and let Xcode deal with the flags.



_______________________________________________ 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: 
 >Restore Build Results window to default? (From: Scott Squires <email@hidden>)
 >[Xcode-users] Linking static curl lib (From: David Cohn <email@hidden>)
 >Re: [Xcode-users] Linking static curl lib (From: Chris Espinosa <email@hidden>)
 >Re: [Xcode-users] Linking static curl lib (From: David Cohn <email@hidden>)
 >Re: [Xcode-users] Linking static curl lib (From: Peter O'Gorman <email@hidden>)
 >Re: [Xcode-users] Linking static curl lib (From: David Cohn <email@hidden>)
 >Re: [Xcode-users] Linking static curl lib (From: Jason Stephenson <email@hidden>)
 >Re: [Xcode-users] Linking static curl lib (From: David Cohn <email@hidden>)
 >Re: [Xcode-users] Linking static curl lib (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Xcode 2.5 and distributed builds
  • Next by Date: Re: XCode and SSE4.1?
  • Previous by thread: Re: [Xcode-users] Linking static curl lib
  • Next by thread: Re: [Xcode-users] Linking static curl lib
  • Index(es):
    • Date
    • Thread