aCuria
aCuria

Reputation: 7205

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 directories

..\..\libraries

// works fine

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

How do I get the relative paths to work?

Upvotes: 4

Views: 4358

Answers (1)

m-sharp
m-sharp

Reputation: 17115

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

Upvotes: 5

Related Questions