cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ld.exe: cannot find -lcurl

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Tue, 31 Jul 2012 14:40:39 +0200

"Chris Ch" <charch86_at_gmail.com> wrote:

> Chris_at_Chris-HP ~
> $ gcc -o live live.c -DCURL_STATICLIB -I/usr/local/include
> /usr/local/lib/libcu

From your prompt, I thought you were not on Win32. How come
you have "/usr/local/lib" on MingW? Sure you don't use MSys?
In any case use:

  gcc -o live live.c -DCURL_STATICLIB -I/usr/local/include \
 /usr/local/lib/libcurl.a -lws2_32

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