Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Choosing C++11 libraries.

Levi_Morrison
Beginner
112 Views

We have multiple installations of GNU and Intel compilers. The version of the libstdc++ that comes on the system does not have support for std::chrono::steady_clock. We are able to use -gxx-name to link to a new g++ version and it works correctly. However, this is not suitable option for our users. Aside from the PATH environment variable, is there some way we can set what g++ version to use for libstdc++?

0 Kudos
3 Replies
SergeyKostrov
Valued Contributor II
112 Views
>>... is there some way we can set what g++ version to use for libstdc++? There is -V option and here is its description: ... -V [version] - Run gcc version number , if installed ...
SergeyKostrov
Valued Contributor II
112 Views
However, it is Not clear what versions of compilers are installed and I just discovered that different versions could have differences, that is a completely different actions for GCC compilers, when -V option is used (!).
Levi_Morrison
Beginner
112 Views

I should have been more clear in my original post: is there some way I can make icc always use a particular version of libstdc++ for all users?

Reply