hello world throwing seg fault

hello world throwing seg fault


I am trying to compile and run a very simple Hello world program using icpc. Nothing fancy, what I do is following,

#include <iostream>

using namespace std;

int main()
        std::cout << " hello " << std::endl;
        return 0;


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.


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