I am in middle of process for installing Eclipse CDT in Windows environment and I got everything working, except when I press the "run" button nothing is showing up on eclipse console.

I have installed Cygwin with GCC and G++, "make" command, and everything Eclipse required.

"build" button in Eclipse works like charm. When I press the "build" button, correct executable file is created and I can confirm this by going into project folder and run the executable in Windows.

But the problem is that when I press the "run" button, Eclipse console shows nothing. I have correctly setted my run config to where "c/c++ Application" is pointing to a correct binary. It is saying program is terminated. Even if my main is as following.

#include <stdio.h>
#include <iostream>
#include <stdlib.h>
using namespace std;

int main(void) {
    puts("Hello World!!!");
    cout << "hey" << endl;
cout << "TESTGIN" << endl;
system("read -p hello");
return 0;
}

If some one could help me out with this it would be great.

Thank you in advance,

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.