Mam błąd podczas kompilacji projektu w VisualStudio przy urzyciu libcurl
#include "stdafx.h"
#include <stdio.h>
#include <curl.h>
#include <easy.h>
int main()
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if (curl)
{
curl_easy_setopt(curl, CURLOPT_URL, "http://www.cnn.com/");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
błędy:
1>------ Build started: Project: libcurl, Configuration: Debug Win32 ------
1>libcurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _main
1>libcurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function _main
1>libcurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function _main
1>libcurl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function _main
1>C:\Projekt\libcurl\VisualStudio\libcurl\Debug\libcurl.exe : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========