开发者

VS10 Additional library directories fails when using a relative path

开发者 https://www.devze.com 2023-04-08 15:39 出处:网络
When I set up my project with relative paths, it fails. // Does not work properties-linker-general-additional library dire开发者_开发知识库ctories

When I set up my project with relative paths, it fails.

// Does not work properties-linker-general-additional library dire开发者_开发知识库ctories

..\..\libraries

// works fine

C:\Users\NAME\Desktop\project\libraries

How do I get the relative paths to work?


Try making it relative to your project directory or solution directory (as appropriate). I avoid playing guessing games with my current directory. Use the convenient variables defined by Visual Studio to avoid hard coding a path.

$(ProjectDir)\..\..\libraries 

or

$(SolutionDir)\..\..\libraries
0

精彩评论

暂无评论...
验证码 换一张
取 消