gcc working with libcurl

c0d3walk3r dev@cbost.net
Fri Nov 14 20:13:00 GMT 2008

Hey guys, first post here, need some help using libcurl with gcc (my version
of gcc is a windows port).  I downloaded libcurl (the
curl-7.19.0-devel-mingw32.zip file from http://curl.haxx.se/download.html),
and unzipped it to c:\libcurl.
I then saved the test source file as sample.c
(http://curl.haxx.se/libcurl/c/example.html) and ran the following gcc
gcc sample.c -o p -Ic:\libcurl\include -Lc:\libcurl\lib
I received the following errors:
undefined reference to `_imp__curl_easy_init'
undefined reference to `_imp__curl_easy_setopt'
undefined reference to `_imp__curl_easy_perform'
undefined reference to `_imp__curl_easy_cleanup'

Any suggestions/advice would be extremely welcome, this is one of my first
times trying to use an external library and it's been something I've tried
using for a while without success.  Keep in mind I am new to using gcc, so
even if the answer is really simple, I'd appreciate a little more than just
an issue of commands (unless it's extremely simple).

View this message in context: http://www.nabble.com/gcc-working-with-libcurl-tp20506927p20506927.html
Sent from the gcc - Help mailing list archive at Nabble.com.

More information about the Gcc-help mailing list