cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: simple.c not working

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 26 Sep 2014 06:09:13 +0200

On Thu, Sep 25, 2014 at 12:32:48PM +0200, mcljubljana_at_gmail.com wrote:
> I wrote simple.c from http://curl.haxx.se/libcurl/c/example.html. I included my
> <curl/curl.h> library to Qtcreator with INCLUDEPATH = C:\Users\Sebastijan\
> Desktop\curl-7.38.0\curl-7.38.0\include.
> When I try  to compile it i get these errors.
>
> C:\Users\Sebastijan\Desktop\seba_d\c++\Qt_workspace\Download_page\main.cpp:30:
> error: undefined reference to `_imp__curl_easy_init'
> C:\Users\Sebastijan\Desktop\seba_d\c++\Qt_workspace\Download_page\main.cpp:32:
> error: undefined reference to `_imp__curl_easy_setopt'
> C:\Users\Sebastijan\Desktop\seba_d\c++\Qt_workspace\Download_page\main.cpp:34:
> error: undefined reference to `_imp__curl_easy_setopt'
> C:\Users\Sebastijan\Desktop\seba_d\c++\Qt_workspace\Download_page\main.cpp:37:
> error: undefined reference to `_imp__curl_easy_perform'
> C:\Users\Sebastijan\Desktop\seba_d\c++\Qt_workspace\Download_page\main.cpp:41:
> error: undefined reference to `_imp__curl_easy_strerror'
> C:\Users\Sebastijan\Desktop\seba_d\c++\Qt_workspace\Download_page\main.cpp:44:
> error: undefined reference to `_imp__curl_easy_cleanup'
> collect2.exe:-1: error: error: ld returned 1 exit status
>
> Do you know what is wrong ?

http://curl.haxx.se/docs/faq.html#Link_errors_when_building_libcur

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-09-26