Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

How to use/configure cURL on Qt Creator?

$
0
0
Hello! By a few days I’m trying to use cURL on my Qt project. But I got many headaches and I decided to ask you. When I’m trying to use cURL functions I got this error: mainwindow.obj : error LNK2019: unresolved external symbol __imp_curl_easy_init referenced in function "private: void __cdecl MainWindow::on_pushButton_clicked(void)" (?on_pushButton_clicked@MainWindow@@AEAAXXZ) debug\Curl.exe : fatal error LNK1120: 1 unresolved externals The main program looks like: #include "mainwindow.h" #include "ui_mainwindow.h"   #include <curl/curl.h>   MainWindow::MainWindow(QWidget *parent) :     QMainWindow(parent),     ui(new Ui::MainWindow) {     ui->setupUi(this); }   MainWindow::~MainWindow() {     delete ui; }   void MainWindow::on_pushButton_clicked() {     //shits here     CURL *curl;     curl = curl_easy_init(); } I’m using Visual Studio 2012 Compiler And the curl files from Microsoft Visual Studio 11.0\VC\include\curl : I’ve read on other forums that I have to add library dependency, but I’m beginer with Qt and I don’t know hot to do that. thanks.

Viewing all articles
Browse latest Browse all 2113

Trending Articles