Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

icpc , c++ fail std=c++14 with gcc version 4.5.8

$
0
0

Hello,

I  have observed an issue  with intel  c++ compiler   using old versions of g++  and support for std=c++11 and std=c++17

Short background :  We use an enterprise Linux Version,  SLES12SP4, and  by  default the compiler ist  gcc 4.5.3  

A perfectly supported std c++14 code ( memory std::make_unique<myClass()>)   will not compile with icpc -std=c++14 -v 19.**   unless I  have added in the path a recent  version of gcc , for example 8.0.3  .   I have examined  the output of  icpc /g++   -E   and  icpc is using the CPP  found in the path ,  and the STL headers in the path of  CPP.

I always tought  , that  the icpc  has an integrated preprocessor, and also STL headers making it inmune to the current installed version of gcc .  There is  list of supported features c++14 c++17, but  there si no parallel to the recommended  gcc .

1)There is a parallel  of which intel compiler suits best to the gcc CPP and STL headers? icpc  2018 failed to build the code above ,  but icpc 2019  compiled it fine using the CPP from gcc 8.0.3

2) Is there a way , using a configuration file on enviroment to instruct / tell    icpc  where to find the preprocessor/gcc and STL librares?   a system-wide  export PATH is not  recommend in my case .  

Thanks

 

 

 

TCE Open Date: 

Monday, December 9, 2019 - 00:02

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>