pjvdm
June 11th, 2009, 04:48 AM
Hi,
I'm trying to compile this simple "program" using boost 1.43 under ubuntu (intrepid):
#include <boost/tr1/memory.hpp>
int main()
{
return 1234;
} However, I get the following error:
/usr/include/boost/tr1/detail/config.hpp:60:26: error: no include path in which to search for utility The boost website says (here (http://www.boost.org/doc/libs/1_35_0/doc/html/boost_tr1/usage.html#boost_tr1.usage.include_style)) to fix this, either
#define BOOST_TR1_DISABLE_INCLUDE_NEXT or
#define BOOST_TR1_GCC_INCLUDE_PATH /usr/include/c++/4.2 but neither works. Both combined also won't work. It still outputs the same error.
I compile with the following command:
g++ -v test.cpp -DBOOST_TR1_DISABLE_INCLUDE_NEXT -DBOOST_TR1_GCC_INCLUDE_PATH=/usr/include/c++/4.3 -I /usr/include/boost/tr1/tr1 -I /usr/include/boost -o test
My gcc include order is as follows which looks correct according to the boost docs:
#include <...> search starts here:
/usr/include/boost/tr1/tr1
/usr/include/boost
/usr/include/c++/4.3
/usr/include/c++/4.3/i486-linux-gnu
/usr/include/c++/4.3/backward
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.3.2/include
/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed
/usr/include
End of search list.
I've also tried to move the /usr/include/boost dir to another location such as /usr/local/include, but got the same result.
Does anybody know how to fix this in Ubuntu?
cheers,
Pieter
I'm trying to compile this simple "program" using boost 1.43 under ubuntu (intrepid):
#include <boost/tr1/memory.hpp>
int main()
{
return 1234;
} However, I get the following error:
/usr/include/boost/tr1/detail/config.hpp:60:26: error: no include path in which to search for utility The boost website says (here (http://www.boost.org/doc/libs/1_35_0/doc/html/boost_tr1/usage.html#boost_tr1.usage.include_style)) to fix this, either
#define BOOST_TR1_DISABLE_INCLUDE_NEXT or
#define BOOST_TR1_GCC_INCLUDE_PATH /usr/include/c++/4.2 but neither works. Both combined also won't work. It still outputs the same error.
I compile with the following command:
g++ -v test.cpp -DBOOST_TR1_DISABLE_INCLUDE_NEXT -DBOOST_TR1_GCC_INCLUDE_PATH=/usr/include/c++/4.3 -I /usr/include/boost/tr1/tr1 -I /usr/include/boost -o test
My gcc include order is as follows which looks correct according to the boost docs:
#include <...> search starts here:
/usr/include/boost/tr1/tr1
/usr/include/boost
/usr/include/c++/4.3
/usr/include/c++/4.3/i486-linux-gnu
/usr/include/c++/4.3/backward
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.3.2/include
/usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed
/usr/include
End of search list.
I've also tried to move the /usr/include/boost dir to another location such as /usr/local/include, but got the same result.
Does anybody know how to fix this in Ubuntu?
cheers,
Pieter