Error setting lib dependencies for a library project



I'm having problems setting additional dependencies for a project which is itself a library. It
seems that the IDE sends a malformed command line to lib.exe. Anything I type in the 'additional
dependencies' field gets sent verbatim to the lib.exe command line as I'd expect, but the filenames
also then get fully qualified and appended to the command line.

For instance, if I create a solution containing two libs Lib1 and Lib2, with Lib2 dependent on
.../Lib1/Debug/Lib1.lib, then build the Debug config, the build log shows the following:

Creating temporary file "c:\Documents and Settings\Andrew\Desktop\LibTest\Lib2\Debug\RSP000019.rsp"
with contents
[
/OUT:"Debug/Lib2.lib" /NOLOGO ../Lib1/Debug/Lib1.lib "\documents and
settings\andrew\desktop\libtest\lib1\debug\Lib1.lib"
".\debug\Lib2.obj"
]
Creating command line "lib.exe @"c:\Documents and
Settings\Andrew\Desktop\LibTest\Lib2\Debug\RSP000019.rsp""
I don't see why the IDE bothers fully qualifying the path to Lib1.lib when it could just run lib.exe
with its current working directory set to the same directory as Lib2.vcproj.Is there a way to stop
this happening? Lib.exe still runs fine, because it ignores the duplicate symbols. But it results in
a lot of output spam for a non-trivial library!Andrew


.



Relevant Pages

  • RE: Error setting lib dependencies for a library project
    ... > I'm having problems setting additional dependencies for a project which is itself a library. ... > seems that the IDE sends a malformed command line to lib.exe. ... > with its current working directory set to the same directory as Lib2.vcproj.Is there a way to stop ...
    (microsoft.public.vc.ide_general)
  • Re: Mass update, incl. service
    ... the dependencies of the component listed below are in you image (if not, ... if FBA Generic command - launch the specified app, ... > Internet Protocol Network Address Translation - Hotfix Q835732 ...
    (microsoft.public.windowsxp.embedded)
  • Re: [KBUILD] allow any PHONY in if_changed_dep
    ... Working on the "why did we build this target path" at the moment. ... commit f9361616df9f8fc80a5bbe8c0a67cf964a10cbf8 ... # The temporary file to save gcc -MD generated dependencies must not ... Short version is $equals quiet, otherwise full command ...
    (Linux-Kernel)
  • RE: Error setting lib dependencies for a library project
    ... > I'm having problems setting additional dependencies for a project which is itself a library. ... > seems that the IDE sends a malformed command line to lib.exe. ... > with its current working directory set to the same directory as Lib2.vcproj.Is there a way to stop ...
    (microsoft.public.vc.ide_general)
  • Newbie needs help: Makefile Dependencies
    ... TARGET: DEPENDENCIES ... "COMMAND" for the case of the makefile for the program that I am ...
    (comp.unix.programmer)

Loading