I am building a C++ library using VS .NET 2003. I am adding a library into
the Additional Dependencies input box. I then click apply and check the
resulting command line. This causes the library to be added twice. The
first instance is just the library name, the second instance is the full path
and library name. For example, adding test.lib to Additional dependencies
results in:
test.lib "C:\[path to library]\test.lib"
This causes the linker to try and link the library in twice which causes
many linking errors. For now I am just adding the test.lib to the command
line to get around the bug. Does anyone else have this problem? Is there a
fix for it?
Thanks,
Steve
>I am building a C++ library using VS .NET 2003. I am adding a library into
>the Additional Dependencies input box. I then click apply and check the
>resulting command line. This causes the library to be added twice.
Steve,
Is the other occurrence appearing because you've got a build
dependency set to the library?
Dave

Signature
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Yogi Watcher - 03 Jun 2005 01:53 GMT
Dave,
I also saw similar behavior. When I add system library such as “msvcrt.lib”,
it does not list that library twice. But when I add “C:\Program
Files\....\custom.lib”, it adds additional entry “\Program
Files\....\custom.lib” (without “C:”).
Yogi
> >I am building a C++ library using VS .NET 2003. I am adding a library into
> >the Additional Dependencies input box. I then click apply and check the
[quoted text clipped - 6 lines]
>
> Dave