I'm getting a linker error whenever I #include in my program. I have downloaded libcurl from haxx.se, compiled libcurl.dll, and added -Icurl to my GCC options when compiling (as well as tried adding a direct path using -L to the dll). However, I still get the following errors:
undefined reference to `_imp__curl_easy_init'
undefined reference to `_imp__curl_easy_setopt'
undefined reference to `_imp__curl_easy_setopt'
undefined reference to `_imp__curl_easy_perform'
undefined reference to `_imp__curl_easy_strerror'
undefined reference to `_imp__curl_easy_cleanup'
My compile command includes this:
-Icurl -L"F:/GCCnew/lib/libcurl.dll"
What am I doing wrong? I suspect it's something simple but I can't work it out and searching hasn't given me a solution that doesn't use something like Code::blocks.