RE: Error setting lib dependencies for a library project





"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
.



Relevant Pages

  • Re: Cant get vcbuild to build a project with dependant projects
    ... missing something? ... I've made sure the IDE has explicit dependency assignments between the ... depencencies on specific dependant libraries, explicitly, but I may be ... It turns out once I set all the linkage and dependencies correctly, ...
    (microsoft.public.vc.language)
  • Re: Command line devenv not picking up dependencies
    ... In Microsoft Visual Studio .NET 2003, the command-line compiler (devenv) ... Use the IDE to build the solution. ... IDE, the dependencies are handled correctly, and you should get a resulting ... > subsequent command line executions work OK too as long as files from the IDE ...
    (microsoft.public.vsnet.ide)
  • 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. ... For now I'm just including both libs as dependencies for my final .exe. ... I don't see why the option is in the IDE if so. ...
    (microsoft.public.vc.ide_general)
  • 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)
  • 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. ... 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 (which it appears to be ...
    (microsoft.public.vc.ide_general)