Boost logo

Boost :

Subject: [boost] [graph] running test leda_graph_cc.cpp fails - header not found
From: Jens Müller (blog_at_[hidden])
Date: 2011-12-13 23:07:51


Hi all,

I tried to run the tests for the LEDA adapter in the Boost Graph library.

I checked out the latest trunk from SVN. I made the Boost.Build v2,
works fine. When running ./../../tools/build/v2/bjam in libs/graph/test,
all tests run fine.

I installed LEDA (free version) in
/home/jens/devel/leda-free/LEDA-6.3-free-fedora-core-8-64-g++-4.1.2-mt

After successfully running all other tests, the one for LEDA fails:

$ ../../../tools/build/v2/bjam -s
LEDA=/home/jens/devel/leda-free/LEDA-6.3-free-fedora-core-8-64-g++-4.1.2-mt/
Performing configuration checks

     - has_icu builds : yes
...patience...
...patience...
...patience...
...found 6503 targets...
...updating 2 targets...
gcc.compile.c++
../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o
In file included from leda_graph_cc.cpp:10:0:
../../../boost/graph/leda_graph.hpp:20:30: fatal error:
LEDA/graph/graph.h: No such file or directory
compilation terminated.

     "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC
-DBOOST_ALL_NO_LIB=1 -I"../../.." -c -o
"../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o"
"leda_graph_cc.cpp"

...failed gcc.compile.c++
../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o...
...failed updating 1 target...
...skipped 1 target...

Note that I edited boost/graph/leda_graph.hpp, fixing a syntax error and
making it point to the now location of the LEDA header files (which
contains an additional "graph" sub-directory).

But the problem seems to be that the include directory is not at all
passed to the compiler. What is going wrong here?

Best,

Jens


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk