Re: Error setting lib dependencies for a library project



"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


.



Relevant Pages

  • Re: How to: Remove duplicate TITLES but keep a COUNTRY code
    ... Thanks for the quick response. ... Any other suggestion? ... >> This works perfectly and removes any duplicate entries with the same TITLE ... > country of ORIGIN such as EEC. ...
    (microsoft.public.sqlserver.programming)
  • Re: &offset= anychance of this causing duplicate penalty?
    ... If you scroll down to the bottom of the 2nd page ... duplicate content .. ... Maybe someone here that is more apt in this kind of thing may ... have a suggestion for you. ...
    (alt.internet.search-engines)
  • Re: How to calculate with #div/0! error?
    ... To exactly show you how the discrepancy occurs I would need not the ... I cannot duplicate the OP's claim that your formula ... but the fact that the OP's numbers no longer match what ... applying your suggestion. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Microfocus COBOL 3.2.43 (16bit)
    ... I really like Paul's suggestion. ... Setting the system up on a virtual machine allows you to duplicate it easily, and even scale it, with a minimum cost. ...
    (comp.lang.cobol)

Loading