|
Boost-Build : |
From: Peter Steiner (peter.steiner_at_[hidden])
Date: 2003-08-13 10:07:23
I'm trying to use templates and got problems (perhaps I have just
overlooked something obvious).
template base :
:
<include>foo/source
;
See the attached stripped-down example
Executing bjam in the project-root directory uses crippled include
paths:
c:\somedir>bjam -n
...found 21 targets...
...updating 2 targets...
gcc-C++-action foo\source\bin\libfoo.lib\gcc\debug\runtime-link-dynamic\foo.obj
g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -I"foo\source" -I"foo\source\foo\source\foo\source" -o "foo\source\bin\libfoo.lib\gcc\debug\runtime-link-dynamic\foo.obj" "foo\source\foo.cpp"
gcc-Archive-action foo\source\bin\libfoo.lib\gcc\debug\runtime-link-dynamic\libfoo.lib
ar ru "foo/source/bin/libfoo.lib/gcc/debug/runtime-link-dynamic/libfoo.lib" "foo/source/bin/libfoo.lib/gcc/debug/runtime-link-dynamic/foo.obj"
...updated 2 targets...
I don't understand the second include paths:
-I"foo\source" -I"foo\source\foo\source\foo\source"
When I'm executing bjam in the subproject's directory, all is fine:
g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -I"..\..\foo\source" -o "..\..\foo\source\bin\libfoo.lib\gcc\debug\runtime-link-dynamic\foo.obj" "foo.cpp"
There is only the expected include path
What am I doing wrong?
Regards, Peter
-- _ _ Peter Steiner <peter.steiner_at_[hidden]> / /_/ / Hug-Witschi AG <http://www.hugwi.ch/> / _ / Electronic Engineering /_/ /_/ _ _ Auriedstrasse 10 / / / / / / CH-3178 Boesingen / /_/ /_/ / Tel +41 31 740 44 44 /_ _ _ _ _/ Fax +41 31 740 44 45 ------------48E05612263F27 Content-Type: application/x-zip-compressed; name="jamtest.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="jamtest.zip" [Attachment content not displayed.] ------------48E05612263F27--
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