Re: Error setting lib dependencies for a library project
- From: "Andrew McDonald" <myrmecophagavir@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 19:51:38 +0100
"Sean Connery" <SeanConnery@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote...
> "Andrew McDonald" wrote:
>
>> 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:
>>
>> [Snip]
>>
>> 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!
>
> 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
Thanks for the suggestion; I do have a solution - couldn't have made the projects without it after
all (though don't get me started on how much I detest the word... why change from 'workspace'?
*Shudders*)
Anyway I tried your idea but the parameter was still duplicated on the command line:
------
Creating temporary file "c:\Documents and Settings\Andrew\Desktop\Sol\Lib2\Debug\RSP000009.rsp" with
contents
[
/OUT:"Debug/Lib2.lib" /NOLOGO "C:\Documents and Settings\Andrew\Desktop\Sol\\lib1\Debug\lib1.lib"
"\documents and settings\andrew\desktop\sol\lib1\debug\Lib1.lib"
".\Debug\Lib2.obj"
]
------
Creating library...
Lib1.lib(Lib1.obj) : warning LNK4006: "void __cdecl foo(void)" (?foo@@YAXXZ) already defined in
lib1.lib(Lib1.obj); second definition ignored
------
Andrew
.
- References:
- Error setting lib dependencies for a library project
- From: Andrew McDonald
- RE: Error setting lib dependencies for a library project
- From: Sean Connery
- Error setting lib dependencies for a library project
- Prev by Date: RE: Error setting lib dependencies for a library project
- Next by Date: Re: Error setting lib dependencies for a library project
- Previous by thread: RE: Error setting lib dependencies for a library project
- Next by thread: RE: Error setting lib dependencies for a library project
- Index(es):
Relevant Pages
|
Loading