Reputation: 12971
I am using Eclipse IDE for C/C++ Developers (Eclipse Ganymede Package - version 3.4.2) on Windows XP with MinGW GCC 4.2.1 and GDB 6.8-3.
I am facing a problem very similar to that mentioned here. A simple hello world program will not print to the console output in the debugger. A run command displays the output correctly. I have checked both gdb output console and the output console.
What are the right settings to get the output in console window of eclipse?
Upvotes: 6
Views: 6910
Reputation:
//have you put endl at the end of your output?
int main()
{
cout << "!!!Hello World!!!"; // prints nothing to console ; no endl
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! twice
return 0;
}
Upvotes: 2