Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Visual Studio C++ 2009 nuget package manager licurl "unresolved external"

$
0
0

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.

enter image description here

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).

enter image description here

Next, Project >> Properties >> Linker >> Input >> Additional Dependencies -> tell the project the file name, say libcurl.lib, where the missing primitives are located.

enter image description here

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!!


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>