简体   繁体   English

项目范围内的其他库路径-MSVS2008

[英]Project-wide additional library paths — MSVS2008

I'm setting up a VC++ project in MS Visual Studio 2008 that'll be used by several people. 我正在MS Visual Studio 2008中设置一个VC ++项目,该项目将由几个人使用。 I wanted to keep things as simple as possible so I've set up Additional Include Directories via the Project properties. 我想使事情尽可能简单,所以我已经通过Project属性设置了其他包含目录。 I've also set up additional library files via Tools -> Options -> Projects and Solutions -> VC++ Directories. 我还通过工具->选项->项目和解决方案-> VC ++目录设置了其他库文件。

However, my issue is that I really need to set up Additional library PATHs, because I am using an SDK which does inline linking of libraries. 但是,我的问题是我确实需要设置其他库PATH,因为我使用的是进行库的内联的SDK。

I could just tell each one of the participants to manually add the library path to their MSVS2008 environment, but it would be handy if I could integrate the RELATIVE library path in the project itself. 我可以告诉每个参与者将库路径手动添加到他们的MSVS2008环境中,但是如果我可以将RELATIVE库路径集成到项目本身中将很方便。

You should consider using Property Sheets instead. 您应该考虑改为使用属性表 They allow you a lot of flexibility in setting paths and other project properties that are common between projects. 它们使您在设置项目之间常见的路径和其他项目属性时具有很大的灵活性。

You can create a property sheet that has a user macro for the absolute path to the SDK. 您可以创建一个属性表,其中包含用于SDK绝对路径的用户宏。 That user macro can then be used to set the additional library paths in the property sheet. 然后,可以使用该用户宏在属性表中设置其他库路径。 This way, you only need to modify the absolute path in one place and it will apply to all of your projects. 这样,您只需要在一个地方修改绝对路径,它将应用于所有项目。

The global "VC++ Directories" feature has been removed in Visual Studio 2010 (it's been replaced by a set of base property sheets). 全局“ VC ++目录”功能已在Visual Studio 2010中删除(已由一组基本属性表代替)。

You can set additional library paths in your project properties: Project Properties | 您可以在项目属性中设置其他库路径:项目属性| Configuration Properties | 配置属性| Linker | 链接器| General | 一般 Additional Library Directories 附加图书馆目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在MSVS2010中使用静态链接库(MSVS2008) - usage of static linked library (MSVS2008) in MSVS2010 MSVS2008编译器找不到隐式类型转换:无法将参数1从'SrcT'转换为'DstT' - MSVS2008 compiler cannot find implicit type conversion: cannot convert parameter 1 from 'SrcT' to 'DstT' MSVC 2010项目范围的宏,带有参数 - MSVC 2010 project-wide macro with parameters 将GDAL合并到MSVS 2008 C ++项目中 - Incorporating GDAL into MSVS 2008 C++ project 在Qt Creator中禁用项目范围内的编译器警告(使用MSVC时) - Disable a compiler-warning project-wide in Qt Creator (when using MSVC) 为什么MSVS 2010 MFC项目依赖于vcredist_x86.exe for MSVS 2008? - Why does MSVS 2010 MFC project depend on vcredist_x86.exe for MSVS 2008? 如何在项目范围内实施唯一的ID /错误代码,以便轻松地在源代码中查找错误的来源? - How to enforce project-wide unique ids/error codes for easily finding the origin of the error in source code? 在Visual Studio C ++项目中设置默认的其他包含/库路径 - Setting default additional include/library paths in a Visual Studio C++ project 将预先构建的Qt二进制文件用于MSVS 2008和MSVS 2010 - Using prebuilt Qt binaries for MSVS 2008 with MSVS 2010 为MSVS设置cURL库 - Setting up cURL library for MSVS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM