• 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 20:28:12 -0800

Thanks all,

Yes, that works... and the build does too... I guess "-lcurl" somehow specifies that the system paths are searched before "-L" paths?
A subisidiary, doh! problem was that I'd tried "without the -l", but I think I was moving too fast-- setting it for the project when the target had a different setting (too much head scratching)...


Thanks again, donuts all around,
--Dave


On Nov 25, 2008, at 7:53 PM, Jason Stephenson wrote:

As Peter O'Gorman pointed out, you can link against the library just by specifying its name, you don't need the -l

Try the following:

gcc -o curltest -I/Chiri/curl-7.18.1/include/curl -L/Chiri/contrib - lz -lssl -lldap -lcrypto libcurl.a test.c


in the directory in your previous email. It should work.

Also, if you just put the full path to your self-built libcurl.a in the OTHER LD FLAGS *WITHOUT THE -l* then you should link against the proper binary from Xcode.

Jason

_______________________________________________ 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: Nick Zitzmann <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>)

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