Libcurl+QtCreator+debian Libcurl+QtCreator+debian curl curl

Libcurl+QtCreator+debian


This works for me just fine:

main.cpp

#include <curl/curl.h>int main( void ){    CURL *curl;    /* First step, init curl */    curl = curl_easy_init();    if (!curl) {       return -1;    }    return 0;}

main.pro

TEMPLATE = appTARGET = curlQT -= core guiLIBS += -lcurl# CONFIG += link_pkgconfig# PKGCONFIG += curlSOURCES += main.cpp

As you can see in the comment, you could also use pkgconfig instead of the LIBS variable which would probably be even neater.

Make sure you have all the corresponding packages installed that are necessary, for instance the development, etc.