Error setting lib dependencies for a library project
- From: "Andrew McDonald" <myrmecophagavir@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Jun 2005 22:22:05 +0100
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
.
- Follow-Ups:
- RE: Error setting lib dependencies for a library project
- From: Sean Connery
- RE: Error setting lib dependencies for a library project
- From: Sean Connery
- RE: Error setting lib dependencies for a library project
- Prev by Date: Re: Program with parameters in VC7
- Next by Date: Error setting lib dependencies for a library project
- Previous by thread: Program with parameters in VC7
- Next by thread: RE: Error setting lib dependencies for a library project
- Index(es):
Relevant Pages
|
Loading