简体   繁体   中英

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.

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 (eg gcc.exe) and make.exe is on your $Path.

Start Eclipse and everything should work fine.

如果您想在Windows上使用Eclipse / CDT,您应该考虑使用Wascana Desktop Developer ,这是一个专门针对Windows主机的CDT发行版。

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.

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM