开发者

VS10 Additional library directories fails when using a relative path

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜