Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-02-26 10:54:57


David Abrahams wrote:

> > Here's a part of builtin.respose-file:
> >
> > if $(sources[2-])
> > {
> > response-file-2 $(target) : $(sources[2]) ;
> > }
> >
> > I think you meant $(sources[2-]) in the second case too ;-)
>
> Nice catch. Now we have:
>
> dependency_test :
> "c:\boost\tools\build\test\..\jam_src\bin.ntx86\bjam
> -sBOOST_BUILD_PATH=c:\boost\tools\build\test\..\new;c:\boost\tools\build\te

> LINK : fatal error LNK1181: cannot open input file 'bin\msvc\debug\d.lib'
> ...failed updating 1 target...
>

> The problem here is that y.cpp has nothing in it to export, so the
> linker helpfully decides not to create an implib.

What is needed to persuade it? A symbol marked with __declspec(dllexport)?
Could you try modifying dependency-test/foo.jam so that it creates non empty
file, and see if this fixed the problem.

> BTW, we're going to have to deal with __declspec(dllXXport) somehow if
> these tests are going to work on MSVC :-S

:-( I'm thinking that we can use macro called DLLEXPORT and automagically pass
appropriate <define> property to bjam invocations. Sounds dirty... but no
better insights yet.

- 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