Visual Studio C++ 2009 comes with NuGet package manager that allows the download of libcurl (as an example). After downloading, availability of libcurl is observed through Project >> Properties >> Referenced Packages
.
The user-defined C++ project then compiles fine using in particular <curl/curl.h>
as header. However, "unresolved external" persist at link time (libcurl primitives are not found). At this point, this seems "logical" and understandable. From this post, pointing the right libcurl.lib file from the project is required. Here are the two derived actions:
Project >> Properties >> Linker >> General >> Additional Library Directories
-> tell the project where to find the appropriate libcurl.lib
file (for instance, x64/debug version choosing between all the stuff downloaded by NuGet).
Next, Project >> Properties >> Linker >> Input >> Additional Dependencies
-> tell the project the file name, say libcurl.lib
, where the missing primitives are located.
Note that I don't manage the dependencies (libssh2, openssl and zlib) of libcurl.lib
itself (I hope that NuGet did something for me?).
The problem is: "unresolved external" still persist at compilation time? I showed on StackOverflow posts that explain how to integrate libcurl in VS but most methods are raw procedures. Taking advantage of NuGet, the procedure (above descried) is intended to be as seamless as possible? However, it fails...
MANY THANKS IN ADVANCE FOR ANY HIGHLIGHT/HELP!!