|
Boost-Build : |
From: Michael Marcin (mike_at_[hidden])
Date: 2007-05-17 10:22:04
Juergen Hunold wrote:
>
> That's the ms-linker being helpfull. You build a dll but don't export
> any symbols, so it does not create a .lib file. Look at the zlib
> sources for the export MACRO (usually something like "ZLIB_EXPORT" or
> similar) and add it as <define>.
> Or build a static library...
>
Doh, thanks.
I found that ZLIB_DLL needs to be defined such that the project becomes.
lib zlib
:
[ glob ../../sdk/zlib/*.c ]
:
<link>shared:<define>ZLIB_DLL
:
:
<include>../../sdk/zlib
;
There is a similar issue with libpng but there appears to be a bug in
their config file in the current version which prevents vc8 from
defining their dll export correctly. Now I just have to remember my SF
login so I can post a bug report to them :)
- Michael Marcin
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