views:

34

answers:

1

I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios SR1 and have installed the CDT plugin. I have also installed MinGW and now I wrote a simple "Hello World" in Eclipse.

hello.cpp

#include <iostream>
using namespace std;
int main()
{
    cout << "Hello World" << endl;
    return 0;
}

In Eclipse using the CDT plugin and the MinGW compiler. How can I compile my program? And how can I test run the program from within Eclipse?

+1  A: 

Does Setting up Eclipse CDT on Windows, Linux/Unix, Mac OS X work for you?

Jay
Thanks, I hadn't set the environment variables for MinGW and MSYS.
Jonas