[TR1] Using Boost.TR1 installed in /usr/include with GCC

We're running into problems compiling the boost math library with GCC's
TR1. The problem comes from Boost.TR1, and I believe the #include_next
preprocessor directive. We are using the Ubuntu packages for g++ and
for Boost 1.40 which installs the headers in /usr/include/boost.
Here's a simple example which fails to compile:
----
#define BOOST_HAS_TR1_TUPLE 1
#include

We're running into problems compiling the boost math library with GCC's TR1. The problem comes from Boost.TR1, and I believe the #include_next preprocessor directive. We are using the Ubuntu packages for g++ and for Boost 1.40 which installs the headers in /usr/include/boost.
Here's a simple example which fails to compile:
Confirmed, I've committed a patch for this here: https://svn.boost.org/trac/boost/changeset/59993/trunk. BTW the problem is specifically caused by enabling GCC's TR1 implementation rather than using Boost's: be aware that all development/maintainance on GCC's TR1 has halted now in favour of C++0x development, so you might actually be better using Boost's version anyway... just my 2c worth! :-) HTH, John.
participants (2)
-
Anthony Foglia
-
John Maddock