简体   繁体   中英

How do I link Extensions to Project (Visual Studio C++ )

I just installed the following library https://github.com/scottdensmore/callisto/tree/cpp via NuGet and via the Extensions and Updates Manaer in C++.

But how can I link the library to my Project.

using Callisto.Controls; gives me Callisto is not defined

Thx for the help in advance

Edit: I tried #pragma comment( lib, "Callisto" ) and #pragma comment( lib, "callisto" ) but its not working. I also don't know the exact name bc its installed as an extensions directly via visual studio and/or via NuGet

To link with a lib file, place a line like this in your source file:

#pragma comment( lib, "name_of_lib_file" )

MSDN Reference

At your project workspace, try go to workspace manager (It is something like that), you will see below projects the folders like: Source , Resources , Headers . Now, right click to Resources folder then add something like Add dependency (I forgot it already since I switch to Code::Blocks) then locate the .lib file of your library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM