I am having a very simialr problem. The difference that I
am having is that I want the .lib linked in, but it is
not build in the default directory that .NEtapparently
has hard coded. For example.
I have 2 projects A & B.
B depends on A.
A.lib is build into C:\myDir\A.lib
.NET adds \projectDir\A.lib to B's project settings!
Then when it's time to link project B, A.lib is not found
because it is built into a different directory.
Is this configurable?
I have a very large project, and this is a huge slow down
for us.
Thanks,
Ryan
>-----Original Message-----
>Hello.
>I have run into a wall when trying to use project
dependencies. My project
>consists of many libraries which depend on many other
libraries. As an
>example, lets say:
>bar() is defined in foo.obj
>library A depends on library B
>library B depends on library C
>library D depends on library C
>executable E depends on libraries A and D.
>Because of the dependencies I checked, VS.NET includes
C.lib on the LIB
>command line when creating B.LIB, thus including it in
C.LIB, etc. This is
>not the bahavior I desire. I just want C built before
B, etc. The result
>is that when I try to link E, VS.NET tries to link C
into the the EXE twice
>(once comming from A and once from D). This causes
LNK4006 errors that look
>something like:
>D.lib (foo.obj) : warning LNK4006: "bar() already
defined in B.lib
>(foo.obj); second definition ignored.
>Is there any way to tell VS.NET NOT to include depended-
upon libraries on
>the LINK and LIB command lines? VS6.0 dependencies
worked fine because it
>did not do this. There seems to be no way to modify the
command line either
>so that I can remove these added libraries on the LINK
or LIB command lines.