Boost logo

Boost-Build :

Subject: [Boost-build] MSVC lib project only creates .dll but not .lib
From: Christoph Mayer (mayer_at_[hidden])
Date: 2008-12-11 07:12:56


Hi,

I have a boost.build project using the msvc toolset (VC8.0) under
Windows XP. The project contains two lib and one exe project.

The main jamfile looks as follows and lies in ./ :

----------<jamfile-begin>----------
project MyProject ... ;
use-project /MyProject/MyCommon/ : MyCommon;
use-project /MyProject/MyLibrary/ : MyLibrary;
use-project /MyProject/MyGui/ : MyGui;
build-project MyGui;
----------<jamfile-end>----------

The other tree jamfiles for the two lib and one exe projects look as
follows:

lies in ./MyCommon/
----------<jamfile-begin>----------
lib MyCommon: ...
----------<jamfile-end>----------

lies in ./MyLibrary/
----------<jamfile-begin>----------
lib MyLibrary: ../MyCommon//MyCommon
----------<jamfile-end>----------

lies in ./MyGui/
----------<jamfile-begin>----------
exe MyGui: ../MyCommon//MyCommon
            ../MyLibrary//MyLibrary
----------<jamfile-end>----------

So, all in all MyLibrary depends on MyCommon and MyGui depends on both
MyCommon and MyLibrary.

When building the project, boost.build compiles MyCommon and creates a
dll successfully. Furthermore, it creates a dll for MyLibrary. Then
boost.build tries to link MyCommon into MyLibrary and fils, as there is
no .lib file created for MyCommon.

The error is as follows:
msvc.link.dll MyCommon\bin\msvc-8.0\debug\threading-multi\MyCommon.dll
msvc.link.dll MyLibrary\bin\msvc-8.0\debug\threading-multi\MyLibrary.dll
LINK : fatal error LNK1181: cannot open input file
'MyCommon\bin\msvc-8.0\debug\threading-multi\MyCommon.lib'

Am I doing somethings wrong with the project dependencies or why are no
.lib files created?

Thanks,
Chris

-- 
Dipl.-Inform. Christoph P. Mayer
Institute of Telematics, University of Karlsruhe (TH)
Zirkel 2, 76128 Karlsruhe, Germany
Phone: +49 721 608 6415, Email: mayer_at_[hidden]
Web: http://www.tm.uka.de/~mayer/

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk