Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Is C++11 support contingent on gcc version?

christian_conveygmai
628 Views

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?

0 Kudos
3 Replies
TimP
Honored Contributor III
628 Views

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.

0 Kudos
christian_conveygmai
628 Views

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

0 Kudos
Judith_W_Intel
Employee
628 Views

 

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

0 Kudos
Reply