Boost logo

Boost-Build :

From: Mark (mcoletti_at_[hidden])
Date: 2002-11-19 17:58:15


Again, I'm trying to use bjam outside of the Boost hierarchy for one
of my own projects. I'm using the Boost regex library, which is one
of the few Boost parts that has a linkable component. Since one
can use bjam to build said components, it seems reasonable to use bjam
in my project to link against the Boost regex library. However, when
I try to do so, I get this error:

c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1455:>>>>|>
>>>|>>>>|>>> is-link-compatible <target-type> : EXE :
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1455:
in fi
nd-compatible-subvariant
*** argument error
* rule is-link-compatible ( feature : value1 : value2 )
* called with: ( <target-type> : EXE : )
* missing argument value2
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1416:see
de
finition of rule 'is-link-compatible' being called
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1502:
in li
nk-libraries
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1710:
in su
bvariant-target
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1797:
in ma
in-target
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1330:
in de
clare-local-target
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\boost-base.jam:1807:
in ex
e
Jamfile:53: in load-jamfiles
c:\cygwin\usr\local\include\boost_1_29_0\\tools\build\bootstrap.jam:15:
in boost
-build
c:\cygwin\usr\local\include\boost_1_29_0\\boost-build.jam:2: in module
scope

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
;

I've placed the full dump of -d5 output at:

http://lychnobite.org/make.log.gz

-or-

http://lychnobite.org/make.log

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.)

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?

Cheers!

Mark

 


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