title
resume   publication   project   teaching   programming
  | Radiance Registry Key | Radiance (.pic) RGBE Format | Solaris Applet | Eclipse C/C++ | Somfy E+ Files |
 
Setting up C/C++ in Eclipse on Windows XP, gonna be pain all over again in Vista... Steps

Steps
Eclipse is primarily used as an IDE, compilers have to be installed seperately. Usually have to install compilers before the IDE (Eclipse) itself. Official Instructions here but I think Eclipse can "download" CDT rather than manually downloading builds.

• Install Eclipse if not already so
• Install gcc, gdb and make via cygwin
• Install C/C++ CDT, specifically SDK for Win32/x86

Step 1 - Install Eclipse
Should have already done so (for Java). In any case, install Sun Java JRE before installing Eclipse.

Step 2 - Install C/C++ Compilers
Eclipse IDE for C/C++ will eventually need make, gcc and gdb compiler. Cygwin can optionally install them though that's not it's primarily feature. Any case, use setup.exe on website.

Click away, note that directory to store downloaded files is on desktop irritating. Change.

Click away until "Select Packages", check "make, gcc and gdb" related stuff under "devel".
  • automake1.10 - tool for generating GNU-compliant Makefiles
  • bashdb:Debugger for bash scripts (Prob no need?)
  • binutils: The GNU assembler, linker and binary utilities (Prob no need?)
  • gcc: C compiler upgrade helper (Prob no need?)
  • gcc-ada: Ada compiler (Prob no need?)
  • gcc-core: Compiler
  • gcc-g++: C++ complier
  • gdb: The GNU Debugger
  • make: The GNU version of the 'make' utility
  • mktemp: Allows safe temp file/dir creatio from shell scripts
Read somewhere that peecee screws up proper compiling, and mingw makes things better (though have to figure out how to specifically make Ecilpse use them?) So, chose these as well...
  • gcc-mingw: Mingw32 GCC compiler upgrade helper
  • gcc-mingw-ada: MingW32 support headers and libries for GCC Ada
  • gcc-mingw-core: MingW32 support headers and libries for GCC
  • gcc-mingw-g++: MingW32 support headers and libries for GCC C++
  • mingw-runtime: MinGW Runtime

Of course, leave automatically selected prerequisites alone. Add path ==> System Properties>> Environment Variables>>Path>>add "C:\cygwin\bin"

Step 3 - Install Eclipse C/C++ CDT

As an IDE, Eclipse supports several languages. C/C++ Development Tools (CDT) runs on Eclipse 3.2.x or Callisto. Use Help>>Software Updates>>Find and Install within Eclipse to install CDT.

There's a screencast somewhere demo-ing the whole thing...
Follow the screencast "Installing Eclipse Features from the Callisto Discovery Site"
Mirror

  • Click away, select mirror, click away
  • Select C and C++ Development
  • Click away, install, click away
Notes:
Managed Make C++ Project - Eclipse handles the makefile.
When in doubt, right click project folder >> "Rebuild Index" ?
Back to Eclipse C/C++