Burkhard
Burkhard

Reputation: 14738

How to configure Eclipse with CDT?

I've been trying to use CDT with Eclipse 3.4 under Windows XP with cygwin.

What do I need to do, in order to get startet? I used "eclipse-cpp-ganymede-SR1-win32.zip" found on the Eclipse homepage.

Edit:

The main problem is, that I cannot compile and run the code.

In the run configuration, I tried gcc.exe for the C/C++ Application:

After adding the path of make.exe to my $Path, and starting from scratch, it works perfectly.

Upvotes: 4

Views: 11151

Answers (6)

cobp
cobp

Reputation: 772

you can install both Cygwin and MinGW in your system. gcc and make available with Mingw seems to be suitable better for native windows build. If the PATH environment is set to paths of Cygwin [and/or] MinGW Eclipse project wizard asks you select one . Either Cygwin or MinGW.

For MingW, you may need to download gdb as well, if you need to debug your application

Upvotes: 0

Burkhard
Burkhard

Reputation: 14738

I finally found. Thanks guys.

After downloading and unpacking "eclipse-cpp-ganymede-SR1-win32.zip", you need to install either Cygwin or MinGW.

Make sure the compiler (e.g. gcc.exe) and make.exe is on your $Path.

Start Eclipse and everything should work fine.

Upvotes: 4

JesperE
JesperE

Reputation: 64404

If you want to use Eclipse/CDT on Windows, you should consider using Wascana Desktop Developer, a CDT distro specially targeting Windows hosts.

Upvotes: 2

McDowell
McDowell

Reputation: 108859

I use MinGW, though I note that the documentation says you can use Cygwin. I would have a look through Max Berger's CDT guide to troubleshoot the problem.

Upvotes: 0

Marcin Gil
Marcin Gil

Reputation: 69505

For me the package you downloaded worked from start. However I was using it with MinGW instead of Cygwin.

I am using it also for QT4 development together with QT Integrator.

Upvotes: 0

VonC
VonC

Reputation: 1323183

According the the CDT Downloads page:

As a minimum, you need to install the Eclipse Platform Runtime before installing the CDT

So adding the CDT Ganymede update site to your current eclipse 3.4 configuration should be enough for you to install CDT.

After that, do you have any error message ?

For instance, there can be some eclipse.ini-related issues when using this package.

Upvotes: 1

Related Questions