While trying to configure Tiledarray on OS X 10.8 using clang++ the configure step fails while trying to compile the eigen example. The compile command is the following
/opt/mpich2/bin/mpicxx -std=c++11 -DEIGEN_COMPILES -I/usr/local/include/eigen3 -o CMakeFiles/ cmTryCompileExec2548984095.dir/src.cxx.o -c /Users/drewlewis/software/build/tiledarray/tiledarray/CMakeFiles/CMakeTmp/src.cxx
The error is
In file included from /Users/drewlewis/software/build/tiledarray/tiledarray/CMakeFiles/CMakeTmp/src.cxx:2:
9 In file included from /usr/local/include/eigen3/Eigen/Core:256:
10 /usr/local/include/eigen3/Eigen/src/Core/util/Memory.h:737:23: error: no member named 'forward' in namespace 'std'
11 ::new(p) T(std::forward(args)...);
Suspected solution is that when compiling with clang++ CXXFLAGS should include -stdlib=libc++
While trying to configure Tiledarray on OS X 10.8 using clang++ the configure step fails while trying to compile the eigen example. The compile command is the following
/opt/mpich2/bin/mpicxx -std=c++11 -DEIGEN_COMPILES -I/usr/local/include/eigen3 -o CMakeFiles/ cmTryCompileExec2548984095.dir/src.cxx.o -c /Users/drewlewis/software/build/tiledarray/tiledarray/CMakeFiles/CMakeTmp/src.cxx
The error is
In file included from /Users/drewlewis/software/build/tiledarray/tiledarray/CMakeFiles/CMakeTmp/src.cxx:2:
9 In file included from /usr/local/include/eigen3/Eigen/Core:256:
10 /usr/local/include/eigen3/Eigen/src/Core/util/Memory.h:737:23: error: no member named 'forward' in namespace 'std'
11 ::new(p) T(std::forward(args)...);
Suspected solution is that when compiling with clang++ CXXFLAGS should include -stdlib=libc++