cURL / Mailing Lists / curl-library / Single Mail


Trouble with curl init

From: Yury Ghirin <>
Date: Tue, 12 Jul 2011 11:46:20 +0300

I am pretty new in Linux coding and I have trouble with compiling
proogram with curl support.

QT version is 4.7.4 64 bit.
OS: Debian 6.0.1a 64 bit.

Here is the code:
-=-=-=-=-=-=-=-=-=-=-CUT HERE-=-=-=-=-=-=-=-=-=-=
#include <QtGui/QApplication>
#include "dialog.h"
#include <curl/curl.h>

int main(int argc, char *argv[])
     Dialog w;
     CURL *curl;;
     curl = curl_easy_init(); << The error comes here
//Some code skipped
-=-=-=-=-=-=-=-=-=-=-CUT HERE-=-=-=-=-=-=-=-=-=-=

The error text:
: undefined reference to `curl_easy_init'
CURL Version:

curl 7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o
zlib/ libidn/1.15 libssh2/1.2.5
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3
pop3s rtsp scp sftp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

How should I define it?

Please help me to solve it.

Thanks for your wonderfull help.

List admin:
Received on 2011-07-12