I have read Microsoft's tutorial "Creating and Using a Static Library (C++)", and successfully follow it.
Here is the dummy project :-
B
: name of a static library projectC
: name of a project that usesB
Here is what Microsoft guides :-
- click "Add references" in
C
, then clickB
(easy) - add "Additional Include Directories" of
C
to point toB
's code folder
Why do I have to do the second (redundant) step?
It causes some maintainability issue & tedious, especially if I have a lot of projects.
Is it what experts do?
I believed just the 1st step should be enough, but after testing it doesn't.
Question:
- Are there any better workflow? What is it?
- If no, how to maintain the include directory (if I move
B
's folder around)?
After searching SO, I come to believe that there are no better way and I have to maintain it manually.