Boost logo

Boost-Build :

From: John Maddock (john_at_[hidden])
Date: 2005-04-03 10:26:04


Is bjam v2 usable with cygwin gcc?

I would like to be able to build quickbook under cygwin (as all of my
existing Boostbook setup is cygwin based), but I'm running up against no end
of issues:

bjam --v2 won't link quickbook (lots of duplicate symbol errors), I found
some information on the cause here:
http://root.cern.ch/phpBB2/viewtopic.php?t=1696&highlight=& and seems we're
currently doing just about everything wrong, we need:

-Wl,--enable-runtime-pseudo-reloc -Wl,--export-all-symbols [all
objects] -Wl,--enable-auto-import

on the link command line, and apparently cygwin won't link with dll's which
don't end in ".dll" either - currently it's linking against a dll that has
Boost's version number encoded in *both* the name, and as a suffix, why does
this need to appear twice like this?

Finally, since Boost.Test can't be used as a dll on Windows at all (and a
few other platforms like Darwin I believe), all the tests that depend upon
Boost.Test fail as well.

I tried building with:

bjam --v2 runtime-link=static

as the docs suggest, but all I got was bjam internal errors saying that
"runtime-link" was not a known feature.

Is there a way to build and use static libraries, while still linking
against the dll runtime? If not there certainly should be, this is a very
common build situation IMO (on Windows in any case).

Thanks, in advance,

John.

 


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