[英]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++. 我刚刚通过NuGet和C ++中的扩展和更新管理器安装了以下库https://github.com/scottdensmore/callisto/tree/cpp 。
But how can I link the library to my Project. 但是如何将库链接到我的项目。
using Callisto.Controls; 使用Callisto.Controls; gives me Callisto is not defined 给我Callisto没有定义
Thx for the help in advance 提前寻求帮助
Edit: I tried #pragma comment( lib, "Callisto" ) and #pragma comment( lib, "callisto" ) but its not working. 编辑:我尝试了#pragma comment(lib,“ Callisto”)和#pragma comment(lib,“ callisto”),但是它不起作用。 I also don't know the exact name bc its installed as an extensions directly via visual studio and/or via NuGet 我也不知道直接通过Visual Studio和/或通过NuGet作为扩展安装的确切名称bc
To link with a lib file, place a line like this in your source file: 要链接到lib文件,请在源文件中放置以下行:
#pragma comment( lib, "name_of_lib_file" )
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
. 在项目工作区,尝试转到工作区管理器 (类似这样),您将在下面的projects
看到以下文件夹: 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. 现在,右键单击“ Resources
文件夹,然后添加类似“ Add dependency
(因为切换到Code :: Blocks后,我已经忘记了),然后找到库的.lib
文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.