问题
When I set up my project with relative paths, it fails.
// Does not work properties-linker-general-additional library directories
..\..\libraries
// works fine
C:\Users\NAME\Desktop\project\libraries
How do I get the relative paths to work?
回答1:
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
来源:https://stackoverflow.com/questions/7537261/vs10-additional-library-directories-fails-when-using-a-relative-path