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

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

- Volodya


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