RE: Error setting lib dependencies for a library project
- From: Sean Connery <SeanConnery@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 11:25:04 -0700
"Andrew McDonald" wrote:
> 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
Assuming you're usinv vs.net, you might do well to create a solution. Then
you can have dependencies as:
$(SolutionDir)\lib1\$(ConfigurationName)\lib1.lib
Just a suggestion :D
.
- Follow-Ups:
- Re: Error setting lib dependencies for a library project
- From: Andrew McDonald
- Re: Error setting lib dependencies for a library project
- References:
- Error setting lib dependencies for a library project
- From: Andrew McDonald
- Error setting lib dependencies for a library project
- Prev by Date: Re: to victor - operator overloading
- Next by Date: RE: Error setting lib dependencies for a library project
- Previous by thread: Error setting lib dependencies for a library project
- Next by thread: Re: Error setting lib dependencies for a library project
- Index(es):
Relevant Pages
|