I’m compiling my project using g++ and a jamroot file (jamroot.jam). I don’t know why it doesn’t know my files even it include the right directory.
Here is the output:
"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DLINUX \
-I"/home/oumaya/docs/UT_Cpp_Test/main/inc" \
-I"/home/oumaya/docs/UT_Cpp_Test/main/inc/include/cppunit" \
-I"/home/oumaya/docs/UT_Cpp_Test/main/inc/include/cppunit/ui/qt" \
-I"/usr/share/boost" -c -o "bin/build/gcc-4.6/debug/src/main.o" "src/main.cpp"
In file included from src/main.cpp:6:0:
/home/oumaya/docs/UT_Cpp_Test/main/inc/UT_Instrument_Test.hpp:7:45: fatal error:
cppunit/extensions/HelperMacros.h : No such file or directory
Compare:
Your command –
The error message:
I.e., the “include root” is expected to be at
/home/oumaya/docs/UT_Cpp_Test/main/inc/include, not the “cppunit” subdirectory (which is apparently stated in the#includedirective).Alternatively, your
#includestatement is wrong, and shouldn’t havecppunit/in front ofextensions/HelperMacros.h.