LAMMPS compilation error

I can confirm that error with the latest version:

…/compute_hexorder_atom.cpp(252): error: namespace “std” has no member “complex”
std::complex z(x, y);
…/compute_hexorder_atom.cpp(252): error: identifier “z” is undefined
std::complex z(x, y);
…/compute_hexorder_atom.cpp(254): error: identifier “real” is undefined
u = real(zn);

and so on

Still no luck with USER-INTEL package.

–Alex

I can confirm that error with the latest version:

../compute_hexorder_atom.cpp(252): error: namespace "std" has no member
"complex"
std::complex<double> z(x, y);
../compute_hexorder_atom.cpp(252): error: identifier "z" is undefined
std::complex<double> z(x, y);
../compute_hexorder_atom.cpp(254): error: identifier "real" is undefined
u = real(zn);

and so on

Still no luck with USER-INTEL package.

works for me with either intel or gcc on fedora 23 using the bundled OpenMPI rpm

[[email protected] src]$ cat version.h
#define LAMMPS_VERSION "15 Jan 2016"

[[email protected] src]$ icpc -v
icpc version 14.0.1 (gcc version 4.8.0 compatibility)

[[email protected] src]$ g++ -v 2>&1 |tail -1
gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC)

axel.

Maybe your compilers are too old? I do think std::complex has been around for a while though, and I don’t think it requires c++11…