cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: compile libcurl dynamically with cross-compiler

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Nov 2007 23:06:01 +0100 (CET)

On Fri, 16 Nov 2007, Tiberiu Motoc wrote:

> I want to know if there is a way to compile libcurl dynamically (Static=no)
> using a cross compiler.

Why would --disable-static and --enable-shared work any differently when you
cross-compile?

> I think this is because I compiled libcurl statically, so if when I try to
> link to it in my program I get a "multiple definition" error. So, how can I
> get it to compile without being static? Will that get rid of the problem, or
> am I making the wrong assumption about this error message?

But if you get errno duplicated you didn't only link libcurl static, you made
it somehow suck in all its dependencies staticly as well!

> PS. I'm using v7.14.0

That's *OLD*!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-11-16