curl-library
Re: Statically linking libcurl in Mac OS X.
Date: Tue, 8 Mar 2005 15:13:19 -0600
On Mar 7, 2005, at 4:01 PM, Óscar Morales Vivó wrote:
> Has anyone been before in a similar situation, or for whatever reason
> created a bundle that contained the libcurl statically linked to it?
> Any pitfalls to be aware of or any advice? Or anyone has a sample
> Xcode project that compiles the libcurl? (I could work on that quite
> easily)
I've done this on OS X using the command line and makefiles, but never
with XCode. Not sure how to do it in XCode, but if you can manually
add object files to link into your program, just put the full path to
the static library there. For example, if you installed your newer
version in /usr/local, then you would link in this file:
/usr/local/lib/libcurl.a
This is standard gcc linking behavior.
-Dave
Received on 2005-03-08