Boost logo

Boost-Build :

Subject: Re: [Boost-build] MSVC lib project only creates .dll but not .lib
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-12-11 07:17:11

Christoph Mayer wrote:

> 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
> '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?

You don't have __dllexport anywhere in your sources, I think.

- Volodya

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