And this : [mboisson@r103-n2 tmp]$ icpc -std=c++11 test_fenv.cpp -c -o a.o In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(58): error: the global scope has no "fenv_t" using ::fenv_t; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(59): error: the global scope has no "fexcept_t" using ::fexcept_t; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(62): error: the global scope has no "feclearexcept" using ::feclearexcept; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(63): error: the global scope has no "fegetexceptflag" using ::fegetexceptflag; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(64): error: the global scope has no "feraiseexcept" using ::feraiseexcept; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(65): error: the global scope has no "fesetexceptflag" using ::fesetexceptflag; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(66): error: the global scope has no "fetestexcept" using ::fetestexcept; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(68): error: the global scope has no "fegetround" using ::fegetround; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(69): error: the global scope has no "fesetround" using ::fesetround; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(71): error: the global scope has no "fegetenv" using ::fegetenv; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(72): error: the global scope has no "feholdexcept" using ::feholdexcept; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(73): error: the global scope has no "fesetenv" using ::fesetenv; ^ In file included from test_fenv.cpp(1): /software6/compilers/gcc/4.8.1/include/c++/4.8.1/fenv.h(74): error: the global scope has no "feupdateenv" using ::feupdateenv; ^ test_fenv.cpp(3): error: identifier "fexcept_t" is undefined fexcept_t data; ^ compilation aborted for test_fenv.cpp (code 2) Maxime Le 2013-11-13 14:28, Maxime Boissonneault a écrit :
This :
#####Without CPLUS_INCLUDE_PATH [mboisson@r103-n2 tmp]$ icpc test_fenv.cpp -c -o a.o [mboisson@r103-n2 tmp]$ env | grep CPLUS #####With CPLUS_INCLUDE_PATH pointing to the gnu std libc++ [mboisson@r103-n2 tmp]$ export CPLUS_INCLUDE_PATH=/software6/compilers/gcc/4.8.1/include/c++/4.8.1/ [mboisson@r103-n2 tmp]$ icpc test_fenv.cpp -c -o a.o test_fenv.cpp(3): error: identifier "fexcept_t" is undefined fexcept_t data; ^
compilation aborted for test_fenv.cpp (code 2)