Choosing C++11 libraries.

Choosing C++11 libraries.

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++?

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

>>... 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
...

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 (!).

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?

Leave a Comment

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