views:

57

answers:

0

I spend most of my time in Eclipse these days, so I thought I would check out what Eclipse's C++ support was like (I usually use Xcode on Mac and Visual Studio for Windows).

I found the CDT package for Eclipse 3.5, so I installed it.

Everything installed properly and the default C++ "Hello World" project compiled nicely, however for the life of me I can't get any application output piped to the console. I've tried everything, and searched around for solutions, but it seems I'm not the only one. Most have trouble in Windows, but I haven't seen a lot of issues with OS X.

Of course, if I run the compiled output in a bash shell, it displays output properly.

This is how simple the default app is:

#include <iostream>
using namespace std;

int main() {
    cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
    printf("Hello world");
    return 0;
}

Any ideas?

Cheers,

Shane