cURL / Mailing Lists / curl-library / Single Mail

curl-library

ld.exe: cannot find -lcurl

From: Chris Ch <charch86_at_gmail.com>
Date: Mon, 30 Jul 2012 15:00:39 -0400

I am trying to compile a simple program which uses libcurl with Mingw using
Msys. Here is my command and the output given:

Chris_at_Chris-HP ~
$ gcc -L/usr/local/lib/libcurl.a -o live live.c -DCURL_STATICLIB
-I/usr/local/include -lcurl
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe:
cannot find -lcurl
collect2.exe: error: ld returned 1 exit status

Any help would be be greatly appreciated :)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-31