• 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: Jason Stephenson <email@hidden>
  • Date: Tue, 25 Nov 2008 22:53:25 -0500

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: 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>)
 >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>)

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