cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl import library in your devel package for mingw

From: Brian Dessent <brian_at_dessent.net>
Date: Sat, 23 Feb 2008 21:00:31 -0800

Guenter Knauf wrote:

> hmmm, now how would one differ between static and dynamic linking?
> If I have both libcurl.a and libcurl.dll.a in same folder, and linking with -lcurl looks first for libcurl.dll.a, how do you link then statically with libcurl.a ?

Exactly as on linux: gcc -static -o foo foo.o -lcurl

Brian
Received on 2008-02-24