Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-19 18:16:19

"Mark" <mcoletti_at_[hidden]> writes:

> This is the portion of the Jamfile that refers to the Boost regex
> library:
> exe simple_csv_t : <lib>simplecsv
> <lib>$(BOOST_ROOT)/libs/regex/build/boost_regex
> <lib>$(TOP)/featurelib/featurespace
> simple_csv_t.cpp
> : <sysinclude>$(LIBTAI_HEADERS)
> <sysinclude>$(BOOST_HEADERS)
> <sysinclude>$(OGR_HEADERS)
> <library-path>$(LIBTAI_LIBPATH)
> <library-path>$(OGR_LIBPATH)
> <find-library>cpl.lib
> <find-library>ogr.lib
> <find-library>libtai.lib
> <find-library>proj.lib
> <include>../../featurelib
> <runtime-link>static
> <runtime-build>debug
> <debug-symbols>on
> <debug-store>object
> <exception-handling>on
> <rtti>on
> : debug
> ;
> What do I need to do to appease bjam and link against the Boost regex
> stuff? (Which, yes, I did build and successfully run its test suite
> on.)

Don't try to use <lib>... to link to it unless you're going to put
your project in the boost tree. Cross-project dependent builds is a
Boost.Build v2 feature, and you don't have it yet. Just use
<library-path> and <find-library> to pick up the appropriate built
regex products.

> As an aside, "simple_csv_t" is really a test harnass. I see mention
> of unit-test, which is essentially what that is; is there any
> documentation on how to create a bjam unit-test case?

Best to use the "sane-testing" branch of tools/build/testing.jam from
CVS, and use the run, compile, compile-fail, link, or link-fail rules
as appropriate for your case. See the contents of testing.jam for
information about how to declare these tests.

David Abrahams
dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at