Boost logo

Boost-Build :

From: chyipin (chyipin_at_[hidden])
Date: 2003-09-10 03:37:46


I'm having trouble using <lib>, please help.

I have a directory containing libraries like so:

.:
Jamfile Jamrules lib0/ lib1/
Jamfile contents:
project-root ;
subinclude lib0 ;
subinclude lib1 ;

./lib0:
Jamfile lib0.cpp lib0.h
Jamfile contents:
subproject lib0 ;

lib lib0
: lib0.cpp
: <include>.
;

./lib1:
Jamfile lib1.cpp lib1.h
Jamfile contents:
subproject lib1 ;

lib lib1
: lib1.cpp
: <include>.
;

Everything works fine for this libraries project. I intend to build
external projects using these libraries in another directory, that is
on the same level as the libraries directory:
./
Jamfile Jamrules use_libraries.cpp
Jamfile contents:
exe use_libraries
: use_libraries.cpp
<lib>../libraries/lib0/lib0
<lib>../libraries/lib1/lib1
;

When I invoke bjam, I get the following message:
../Jamrules: No such file or directory
unknown dependent target <..!libraries!lib0>liblib0.a

Am I missing anything obvious?

 


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