• 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: David Cohn <email@hidden>
  • Date: Tue, 25 Nov 2008 16:23:57 -0800

Chirs,

Thanks for your help... something must be wrong here:

Other Linker Flags:	-l/My/Full/Path/libcurl.a
fails:				/usr/bin/ld: can't locate file for: -l/My/Full/Path/libcurl.a

Other Linker Flags:	-L/My/Full/Path -lcurl -lz
links, but again I'm getting the older version of libcurl.

(I'm using Xcode 2.4.1, and "Other Linker Flags" is shown as OTHER_LDFLAGS. I'm assuming that part is right)

Thanks,
--Dave



On Nov 25, 2008, at 3:23 PM, Chris Espinosa wrote:


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: Peter O'Gorman <email@hidden>
    • 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>)
 >Re: [Xcode-users] Linking static curl lib (From: Chris Espinosa <email@hidden>)

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