Installing libcurl in VC++ (windows)

Hello,

Recently I've gotten interested in "socket programming." I noticed many people mentioned using a library called "libcurl." It seems like a great library but there's one problem; I can't get it to work at all. Not as in I can't code with it, I just can't install it. I have absolutely no idea how to install a library into VC++ (or any compiler for that matter.)

Libcurl comes with an "include" folder that has a subfolder called "curl" which contains the header files. I've tried placing the files in the "include" folder into the one I found in VC++, then typing <include curl\curl.h> but nothing happens. The website (http://curl.haxx.se/) doesn't help at all.

P.S.: I know libcurl is a C library, and curlpp (the c++ version) is available, but it claims that libcurl must be installed to use it. Also I hope it doesn't make my post unrelated to the forum.

TL;DR: Can't install a library into vc++ on Windows XP, what do I do?
Just a quit update...

I tried adding the "lib" and "include" folders in libcurl as a directory in VC++'s library files and hidden files options (respectively) but it still gives me

"error LNK2019: unresolved external symbol *libcurl function name here* referenced in function _main"

errors.
I guess you have to add additional lib files.
You can do it by editing project properties or it can be done via writing

#pragma comment( lib, "nameOFLib.lib" );
right after #include lines.
Last edited on
Thanks for the quick reply, but it doesn't have any lib files. Only dll's, header files, etc.
possibly, you have to create .lib file with provided source codes and header files.
Topic archived. No new replies allowed.