0

I have defined a

LIBDIR = $(ProjectDir)..\lib

in Project Properties -> C++ -> Preprocesor, which seems to be evaluated correctly.

Now, I want to add an include directory in C++ -> General -> Additional Library Directories which uses the definition above. Something like:

LIBDIR\include

This one is being evaluated incorrectly.

Any hints?

I am using Visual Studio 2015.

2
  • Visual Studio 2015 Commented Sep 17, 2016 at 13:28
  • @PaulR, that's correct. Thank you. Commented Sep 17, 2016 at 13:32

1 Answer 1

1

You cannot define new build macros in Visual Studio. Thus, to define the additional library directory you can only use the predefined macros, like $(ProjectDir)..\lib\inlcude

The preprocessor definition you've defined in the first step used solely in source files.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the precise answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.