If you see the following error message when running the compiler 10.1 and earlier version:
mcpcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory compilation aborted for /tmp/hello.cxx (code 127)
It is because the Intel® C++ Compiler for applications running on Intel® 64 architecture requires the following 32-bit (IA-32) C and C++ runtime libraries:
libm.so.6, libpthread.so.0, libc.so.6, libstdc++.so.5 and libgcc_s.so.1.
The requirement on 32-bit (IA-32) libraries is due to the compiler and various components being 32-bit applications, and dynamically linking to these libraries. The above error message is confusing as it doesn't indicate that the IA-32 version of libstdc++ library is required. To avoid this problem, install the 32-bit (IA-32) versions of these libraries. Most Linux* distributions for Intel® 64 architecture will install these 32-bit libraries by default.
This article only applies to Intel® C++ Compiler 10.1 and earlier versions. Intel® C++ Compiler 11.0 for Intel® 64 is a 64-bit application, which doesn't require 32-bit libraries.
Intel® C++ Compiler for Linux* - Issues running Intel® C++ Compiler for Intel® 64-based application
Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.