• 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: Chris Espinosa <email@hidden>
  • Date: Tue, 25 Nov 2008 15:23:09 -0800


On Nov 25, 2008, at 3:07 PM, David Cohn wrote:

I'm having trouble linking a newer static libcurl than what's installed on my system (7.16.3 installed, trying to link 7.18.1).
I've created the curl library in a relative directory, and played around variously with setting Library Search Paths and actually adding the .a files to the project (among other things). In general, the application builds fine-- no error messages-- but the version used is always 7.16.3, which tells me I'm getting the dynamic lib at run-time rather than the .a file i statically link. (ld shows -lcurl -lz in the build transcript)


Any ideas on how can I force the static library to link?

1) Remove the .a and the dylib from the project. 2) Add this to OTHER_LINKER_FLAGS: -l/my/full/absolute/path/to/libcurl.a

Chris
_______________________________________________
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


  • Follow-Ups:
    • Re: [Xcode-users] Linking static curl lib
      • From: David Cohn <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>)

  • Prev by Date: [Xcode-users] Linking static curl lib
  • Next by Date: Re: [Xcode-users] Linking static curl lib
  • Previous by thread: [Xcode-users] Linking static curl lib
  • Next by thread: Re: [Xcode-users] Linking static curl lib
  • Index(es):
    • Date
    • Thread