Boost logo

Boost-Build :

From: Sara Collins (bkhn41_at_[hidden])
Date: 2005-02-03 13:09:12


> I've just tried the example which was sent me back
then, and it works. Any
> change you can provide me with a testcase? You can
also try creating file
> foo.jam, define your feature there and "import foo
;" in project-root.jam

Ok, so after a while, I was able to simplify my
project and reproduce it.

My directory structure looks like this:

feature
| + project-root.jam
| + Jamfile
| +- sub
| | +- Jamfile
| | +- subLib.cpp
| | +- a.cpp

My feature/project-root.jam is:
import feature : feature ;
import modules ;
path-constant TOP : . ;
path-constant SUB : sub ;
use-project /sub : $(SUB) ;

feature release : none apply devel : composite ;
feature.compose <release>apply :
<library>/release//apply/<toolset>gcc ;
feature.compose <release>devel :
<library>/release//devel/<toolset>gcc ;

My feature/Jamfile is:
project release ;
lib apply : : <name>apply ;
lib devel : : <name>release ;

My feature/sub/Jamfile is:
project sub ;
lib subLib : subLib.cpp ;
exe subTest : a.cpp ;

subLib.cpp and a.cpp are just empty cpp source files.

Bjam output is:
C:/Boost/boost-build/build\feature.jam:127: in feature
from module feature
error: feature already defined:
error: in feature declaration:
error: feature "release" : "none" "apply" "devel" :
"composite"
..\project-root.jam:9: in modules.load from module
project-root<..>

If I comment out "use-project /sub : $(SUB) ;" in
project-root.jam, then everything runs fine.
Something's not right when it tries to set the path
constant SUB.

I attached feature.zip with the mail. I hope you can
help me figure this out.

Thanks a lot.
Sara

__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail --0-1673530604-1107454152=:59118 Content-Type: application/x-zip-compressed; name="feature.zip"
Content-Transfer-Encoding: base64
Content-Description: feature.zip
Content-Disposition: attachment; filename="feature.zip"

[Attachment content not displayed.] --0-1673530604-1107454152=:59118--


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