Subject: Re: [Boost-build] Building Zlib and Iostreams
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-07-13 05:25:01
On Monday 13 July 2009 Craig Henderson wrote:
> > >
> > > I have re-built Boost.Iostreams with ZLib 1.2.3 and the following code
> > > produces a linker error
> > >
> > > LINK : fatal error LNK1104: cannot open file
> > > 'libboost_zlib-vc80-mt-gdp-1_39.lib'
> > This is static, debug library, with STLport. Are you using STLport in your
> > project? Did you build Boost with stlport or maybe you've missed
> Yes, I am successfully using STLPort with Boost. I built Boost with:
> set INCLUDE=%INCLUDE%;C:\root\Development\Library\zlib\include
> set LIBPATH=%LIBPATH%;C:\root\Development\Library\zlib\lib
> set ZLIB_BINARY=zdll
> ..\bjam --toolset=msvc stdlib=stlport "stdlib:stlport-iostream=on"
> The documentation for building iostreams isn't great, but it says there's a
> NO_ZLIB variable that defaults to 1 to Windows. It doesn't say, where this
> is - do I need to change some config somewhere?
You need to specify ZLIB_INCLUDE as well and maybe ZLIB_LIBPATH. You don't have
to poke at NO_ZLIB, in 1.39. The way you set ZLIB_BINARY above seems
ok. You can use --debug-configuration to see some debugging messages.
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