| greg.corson@gmail.com 2005-11-16, 7:03 pm |
| I'm running into a problem where the project dependencies feature of
..net 2003 is adding unwanted files into my link. The project layout
looks like this...
Version 1 specific library -> makes v1.lib static library
Version 2 specific library -> makes v2.lib static library
Common to all versions library -> makes common.lib static library
Application
"Application" has build targets to build a version 1 application and a
version 2 application. The version 1 target should link the app with
v1.lib and common.lib, the version 2 target should link with v2.lib and
common.lib.
Because there is only one "project dependencies" (not one per build
target) I have to set "Application" to depend on all three libs. When
you do this, VC++ automatically adds all three libs to the linker line
which is NOT what I want. It needs to link with either v1.lib or
v2.lib but NOT both.
Anyone know a way to stop this? I thought "ignore import library"
would work, but this property isn't available for the librarian.
|