I am trying to compile and run a very simple Hello world program using icpc. Nothing fancy, what I do is following,
using namespace std;
std::cout << " hello " << std::endl;
I compile the above code using
icpc hello.cpp -o hh
compilation works just fine but when I try to run this I get "segmentation fault" I am not sure what is causing this error. Could anyone please help trouble shoot this.
For more complete information about compiler optimizations, see our Optimization Notice.