Is C++11 support contingent on gcc version?

Is C++11 support contingent on gcc version?

I'm using Intel C++ 13.1.0 on CentOS 6.4.

Does anyone know precisely which C++11 features this supports?  The Release Notes have this ominous-sounding bullet point:

"Support for C++11 features in gcc 4.6 and 4.7 headers"

So does that mean that whatever C++ standard-library header files reside under /usr/lib are the ones used by the Intel compiler?

Also, CentOS 6.4 provides gcc 4.4.7.  Does this mean that if I want the Intel C++ compiler to have as-complete-as-possible C++11 support, I need to somehow get the header files from a newer version of G++ to reside under /usr/include?

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If you want such C++11 support, you should install a newer g++ .   That's not difficult on recent CentOS, and need not displace the one provided by CentOS. icpc uses headers and libraries from the active g++.

While the latest icpc release didn't add any C++11 features, it fixed some related bugs.

Thanks Tim.  So does ICC, in general, use GCC's standard C/C++ libraries rather than provide its own?


Yes, in order to be binary compatible with GNU we need to use the same header/files and libraries.

Leave a Comment

Please sign in to add a comment. Not a member? Join today