[BBv2] getting started problem with headers

Hi boosters, i can't build my first stand alone project with boost.build. I did'nt found any solutions in the doc. :( Here the facts: envirement: - winxp with vc7.1 and cygwin with gcc3.4 - bjam version 03.01.11 (which comes with boost 1.33) - set the SystemVar BOOST_ROOT=D:\Temp\boost_1_33_0 (under win) In my home directory are these files: // FILE: site-config.jam # Get Boost location from build system path-constant BOOST_ROOT : [ modules.peek : BOOST_ROOT ] ; // FILE: user-config.jam import toolset : using ; using msvc ; and here is my simple project dir + my_prj // FILE: hello.cpp #include <boost/array.hpp> #include <iostream> int main() { boost::array<int,4> a = { { 1, 2, 3 } }; std::cout << "Hello!\n"; std::cout << "a[1]:" << a[1] << '\n'; std::cin.get(); return 1; } // FILE: Jamfile # nothing works, :( .. could not find the boost header # nothing works.. exe hello : hello.cpp ; #exe hello1 : hello.cpp : <include>boost ; #exe hello2 : hello.cpp : <include>BOOST_ROOT ; #exe hello3 : hello.cpp : <include>$(BOOST_ROOT) ; // FILE: project-root.jam path-constant MY_DIR : . ; using lex ; using bison ; using testing ; What's wrong? Why could'nt found the boost header files? For beginners it would wounderfull to add samples to the doc which shows the integration of Boost (include and libs). Thanks in advance Tino Schumacher ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

Hi Tino,
// FILE: Jamfile # nothing works, :( .. could not find the boost header # nothing works.. exe hello : hello.cpp ; #exe hello1 : hello.cpp : <include>boost ;
To begin with, try: exe hello : hello.cpp : <include>FULL_PATH_TO_BOOST ; If that builds, we can go on to solve you problem with project constant. If not, tell me what specific problem you have? Are boost headers not found? Or you get an error from Boost.Build? Or something else? - Volodya
participants (2)
-
Tino S.
-
Vladimir Prus