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

icpc does not work with "--std=c++17" on (ICC) 19.0.4.243 20190416

$
0
0

icpc shows the following error when it is compiled with "-std=c++17"  However, it is okay with "-std=c++11" and "-std=c++14".

     ICPC version: 19.0.4.243 20190416

     OS : RHEL 7.6 / X86-64

--------------------------------

icpc -std=c++17  -ltbb foo.cpp -o foo
/tmp/icpcSHeQQ3.o: In function `main':
foo.cpp:(.text+0x46): undefined reference to `__builtin_is_constant_evaluated'

 

<<< foo.cpp  >>

#include <vector>

#include <iostream>

#include <string>

using namespace std;

int main(int argc, char** argv) {

   int n = stoi(argv[1]);

    vector<int> vec(10);

    return 0;

}

 


Viewing all articles
Browse latest Browse all 1175

Trending Articles



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