简体   繁体   English

如何将扩展链接到Project(Visual Studio C ++)

[英]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" )

MSDN Reference MSDN参考

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看到以下文件夹: SourceResourcesHeaders 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.

相关问题 如何在 Visual Studio 中打开 C++ 项目文件夹? - How do I open a c++ project folder in visual studio? 如何使Visual Studio 2015 C ++项目与Visual Studio 2010兼容? - How do I make a Visual Studio 2015 C++ project compatible with Visual Studio 2010? 如何将Qt与visual studio c ++应用程序项目联系起来? - how to link Qt with a visual studio c++ application project? Visual Studio C ++项目管理。 如何处理项目中的非代码文件? - Visual Studio C++ project management. How do I handle non-code files in a project? 如何将C ++(Visual Studio 2010)链接到图像输出事件侦听器? - How do I link C++ (Visual Studio 2010) to an image-outputting event listener? 如何在 Visual Studio 中添加 C++ 项目引用? - How do you add a C++ project reference in Visual Studio? 拆分一个Visual Studio C ++项目:如何(几乎)自动做到? - Split a Visual Studio C++ project : how to do it (almost) automatically? 您如何打包要发布的 Visual Studio C++ 项目? - How do you pack a visual studio c++ project for release? 如何从 Visual Studio 项目中读取 C++ 中的 netcdf 文件? - How do i read netcdf files in c++ from a visual studio project? 在 Visual Studio C++ 项目中,如何添加到“标题搜索路径”和“源列表” - In visual studio C++ project, how do I add to "headers search path" and "source list"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM