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


I have a 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 ./ :

project MyProject ... ;
use-project /MyProject/MyCommon/ : MyCommon;
use-project /MyProject/MyLibrary/ : MyLibrary;
use-project /MyProject/MyGui/ : MyGui;
build-project MyGui;

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

lies in ./MyCommon/
lib MyCommon: ...

lies in ./MyLibrary/
lib MyLibrary: ../MyCommon//MyCommon

lies in ./MyGui/
exe MyGui: ../MyCommon//MyCommon

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

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

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

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


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]

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at