[C++-sig] boost.build help
David Abrahams
dave at boost-consulting.com
Sun Aug 28 03:47:47 CEST 2005
"Stephen Henry" <Stephen.Henry at elixent.com> writes:
> Hi all,
>
> I'm attempting to get my head around Boost.build and using it to build
> my project. I've run into some trouble and was hoping that their was
> someone out their that could help me:
These questions should probably go to the jamboost list:
http://www.boost.org/more/mailing_lists.htm#jamboost
>
> I have a directory that looks like the following:
>
> root
> |
> --- inc
> |
> --- src
>
> in root I have a "project-root.jam" file containing "path-constant
> BOOST_ROOT : /home/henrys/boost". In src I have a Jamfile.v2 with the
> following:
>
> import python ;
>
> if [ python.configured ] {
>
> python-extension dfa : dfa.cpp
> : <include>${BOOST_ROOT} <include>../inc
> <template>${BOOST_ROOT}/libs/python/build/extensions ;
> }
> else
> {
> ECHO "Python location is not configured"
> }
>
> and a user-config.jam in my home directory with "using python ;"
> contained within it.
>
> When I'm trying to compile my extension, I cd to the src directory and
> type bjam --v2, but I get a long error originating in boost-build.jam:1
> and ending in tools/build/v2/build/feature.jam:193 with the error:
> "<template> is not a valid feature name".
>
> Does anyone know what I'm doing wrong?
Well, <template> is a BBv1 feature. Are you intending to use
Boost.Build v1 or v2?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list