Eric W wrote:
MS VC++ 7.1 - I have a project with static libs A, B and C where A depends on
B anc C, also B depends on C. If I set this up in the project dependency
dialog for A the Build environment puts B and C in the command line (seen
in the Librarian view of the project settings for A) an as a result I get
LNK4006 warnings all over the place.
So I am trying to establish dependencies such that A gets rebuilt if source
in B or C changes. What I am getting is that PLUS the linker is trying to
link the other static libs into A which it should not be doing.
This has got to be a bug right?
If you set a dll or lib as a dependant project in VC, the IDE
automagically tries to link its lib or export library to the dependee.
This can incredibly annoying for plug-in style DLL projects with
abstract DLL interfaces (but you wish to enforce a build order).
Luckily after many many many months of being annoyed at MS for this
behavior, I discovered it could be turned off with a rather esoteric
project setting.
For the dependant project, under the project properties
set 'Linker->Ignore Import Library' to 'Yes' and it will not cause other
projects which depend on it to link the import library generated by it.
And all will be sane and right in your universe.