This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Compiling DOLFIN, boost error, 'namespace "std" has no member "nullptr_t"'

0 votes

Have you guys run across the following before? I suspect it has to do with boost and compilers. Googling around I found some weird thread about the aesthetics of the C language, but not much else.

My specs:
boost 1.55.0
icpc (ICC) 14.0.0 20130728
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

Using the intel compiler, but apparently the gcc matters, too.

Here's the error:
[pconstan@mio fenics-project-dolfin-c458b11cf972]$ make
Scanning dependencies of target dolfin
[ 1%] Building CXX object dolfin/CMakeFiles/dolfin.dir/adaptivity/AdaptiveLinearVariationalSolver.cpp.o
In file included from /u/pa/fb/pconstan/bins/prog/include/boost/smart_ptr/scoped_array.hpp(17),
from /u/pa/fb/pconstan/bins/prog/include/boost/scoped_array.hpp(14),
from /u/pa/fb/pconstan/bins/prog/include/boost/ptr_container/detail/scoped_deleter.hpp(21),
from /u/pa/fb/pconstan/bins/prog/include/boost/ptr_container/detail/reversible_ptr_container.hpp(21),
from /u/pa/fb/pconstan/bins/prog/include/boost/ptr_container/detail/associative_ptr_container.hpp(20),
from /u/pa/fb/pconstan/bins/prog/include/boost/ptr_container/ptr_map_adapter.hpp(20),
from /u/pa/fb/pconstan/bins/prog/include/boost/ptr_container/ptr_map.hpp(20),
from /u/pa/fb/pconstan/software/fenics/fenics-project-dolfin-c458b11cf972/dolfin/function/Function.h(32),
from /u/pa/fb/pconstan/software/fenics/fenics-project-dolfin-c458b11cf972/dolfin/adaptivity/AdaptiveLinearVariationalSolver.cpp(28):
/u/pa/fb/pconstan/bins/prog/include/boost/smart_ptr/detail/sp_nullptr_t.hpp(35): error: namespace "std" has no member "nullptr_t"
typedef std::nullptr_t sp_nullptr_t;

asked Apr 25, 2014 by paulconstantine FEniCS Novice (170 points)

1 Answer

+2 votes
 
Best answer

I've seen this with Intel 14.0.x compilers and Boost 1.55. I think it's a Boost 1.55 bug. Using Boost 1.54 worked fine for me with Intel 14.0.x

answered Apr 25, 2014 by Garth N. Wells FEniCS Expert (35,930 points)
selected Apr 28, 2014 by paulconstantine
...