cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Linking static libcurl on macos x

From: Toby Peterson <toby_at_apple.com>
Date: Sat, 3 Dec 2005 14:32:29 -0800

Static libs can't dynamically reference other libraries, so you need
to explicitly add -lssl and so on.

- Toby

On 03 December 2005, at 11.01.15, Shawn McGrath wrote:

> Whenever I try to link the libcurl.a with my app, it gives me errors
> saying it can't find symbols in various .dylib files (ssl and
> encrypt). Linking libcurl.dylib works just fine.
>
> I've tried compiling libcurl with configure --disable-shared
> --enable-static, and as previous suggested in this list (albeit for a
> slightly different issue), I tried stripping the library with strip -S
> and strip -x and it didn't solve the problem.
>
> Anyone have any clues?
>
> -Shawn.
>
Received on 2005-12-03