I haven't used that API, but I have used C++ APIs with Visual Studio
before, assuming that is your IDE. So i was looking at the tutorial suggested above: link
Basically you need to compile either Libcurl
or curlcpp
given that the API is written in C
. The tutorial explains a method for each, but seems to me that the one suggested for Libcurl is easier, given that there's already a Visual Studio solution for it and you only need to do a double click and compile it (this is a guess, I haven't tried).
Then, once you have built the project, you'll get a folder with files, DLLs and LIB files. The tutorial only says to declare those directories in your project:
Add CURL_STATICLIB to the preprocessor definitions.
Add curl\include and curlcpp\include to the list of Additional Include Directories. (Make sure you include the correct relative paths.)
Add curl and curlcpp output folders, curl\build\lib\x86 and curlcpp\lib\x86\, to the Additional Library Directories.
Add the following static libraries to the list of Additional dependencies: libcurld.lib;curlcppd.lib;Crypt32.lib;ws2_32.lib;winmm.lib;wldap32.lib;
This mean, you need to open the Properties of your solution (Right click, Properties), and add the folders required to tell Visual Studio that you have header files outside the typical installation folders.
In the Properties page, Under Configuration Properties, you'll see a property called VC++ Include Directories
, in the Include Directories option is where you have to add the paths for the curl\include
and curlcpp\include
to let VS know that you have headers there.
Navigate thru the Properties page and you'll find the option for all of those steps above, The Include Directory
and Library Directory
are under the VC++ Directories property, and the Additional Library Directory
is under the Linker
Properties.