cURL / Mailing Lists / curl-users / Single Mail

curl-users

simple.c not working

From: <mcljubljana_at_gmail.com>
Date: Thu, 25 Sep 2014 12:32:48 +0200

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 ?

-------------------------------------------------------------------
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-25