Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

hello world throwing seg fault

ankit_m_
Beginner
196 Views

Hello,

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.

 

0 Kudos
0 Replies
Reply