|
Boost-Build : |
From: Jason Stewart (jstewart_at_[hidden])
Date: 2005-09-22 15:11:59
>Well, you should use Jamroot, but that aside, add
>
> use-project /boost : $(BOOST_ROOT) ;
Do you mean the rules should be in Jamroot instead of project-root.jam?
--- project-root.jam ---
path-constant PROJECT_ROOT : . ;
path-constant BOOST_ROOT : c:/boost ;
use-project /boost : $(BOOST_ROOT) ;
> >
> >
> > In the Ptolemy directory I have the following:
> >
> > --- Jamfile ---
The Ptolemy/Jamfiles file now looks like this:
project Ptolemy ;
unit-test test : [ glob test/*.cpp ] Ptolemy
/boost/test//boost_unit_test_framework
;
lib Ptolemy : [ glob *.cpp ] ../Geodesy//Geodesy
: <link>static
;
I know you mentioned putting the reference to the test framework in
the lib target but the linking error is in the unit-test target. I
tried it both places for good measure and superstition. Now I get:
Failed to find the project root for directory '/c:/boost'.
Did not find a project-root.jam file there or in any of its
parent directories.
Please consult the documentation at 'http://www.boost.org'.
I should mention that c:\boost is an installed copy of boost, not a
full source tree. That is, I downloaded the source and ran 'bjam
install'. So it has an include directory and a lib directory but no
sources other than the headers in include.
I don't understand why the line in my Jamfile is
'/boost/test//boost_unit_test_framework'
instead of
'/boost/boost_unit_test_framework'
As I understand it, the line that I added to my Jamroot file defines
an external library called boost and specifies a location for it.
Thanks,
Jason Stewart
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