[英]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.