cURL / Mailing Lists / curl-library / Single Mail


How to prepare a setup for libcurl development

From: <>
Date: Thu, 3 Dec 2009 22:48:48 -0500


I am new to libcurl & in my current project I have to use libcurl for
the development of my application which collects event logs from various
windows resources.

Going through various links on the net, I found that libcurlpp is
required to build libcurl applications in C++ environment.

But to build libcurlpp, we need libcurl, which in turn needs OpenSSL.

I installed OpenSSL successfully. I have libcurl to on my machine but
compiling a small code (given below), results in linker error.

#include <curl/curl.h>
#include <curl/easy.h>

int main(int argc, _TCHAR* argv[])

        CURL *curl;
        CURLcode res;
        curl = curl_easy_init();

Output: Error 12 error LNK2001: unresolved external symbol
__imp__curl_easy_init wsman.obj

In project settings

C/C++ Tab:

"C:\Test\wsman\third party\xercesc\include";"C:\test\wsman\third
party\curl-7.19.7\include";"C:\Program Files\Microsoft Platform SDK for
Windows Server 2003 R2\Include";"C:\test\wsman\third party\OSSL\include"


Linker Tab:
"C:\test\wsman\third party\curl-7.19.7\lib";"C:\test\wsman\third
party\OSSL\lib";"C:\Program Files\Microsoft Platform SDK for Windows
Server 2003 R2\Lib";"C:\test\wsman\third
party\xercesc\lib";"C:\test\wsman\third party\curl-7.19.7\lib\DLL-Debug"

xerces-c_2.lib xerces-c_2D.lib libcurl.lib libeay32.lib ssleay32.lib

I have copied libcurl.dll, libeay32.dll & ssleay32.dll in
"C:\WINNT\System32" directory as well.

Can anybody help me on this, how can I get rid of the linker error I am

Any help in this regards would really be appreciated.

Thanks & Regards.
Nitin Mittal

List admin:
Received on 2009-12-04