Note
This is only needed for Windows.
You will need to install some necessary toolchains/utilities to make things easier.
Why don’t we get everything out-of-the-box with Eclipse? Why one (or many) more step(s) to install other utilities? Why is Eclipse not shipped with every pre-requisite?
This blame game would not take us anywhere. Why is Eclipse not shipped with every pre-requisite? The same holds true for Windows? Why is it not shipped with a compiler by default?
But here is a quick (and dirty) rationale/overview:
This makes its difficult for toolchains under GPL or LGPL to be distributed from http://eclipse.org/.
So you will have to install MinGW or Cygwin manually.
To keep things simple, installation of MinGW is described here.
Download MinGW from http://www.mingw.org
MinGW would ask for options to be selected. Select todo:: gcc
and todo:: make
(MinGW is a set of tools. C/C++ compiler, gcj compiler, etc. get distributed with MinGW. We only need gcc and make)
It is recommended to select the installation location along with
Eclipse. If eclipse.exe is installed as
c:\eclipse\eclipse.exe
, installing MinGW as
C:\eclipse\MinGW
would make things simple later.
Else make sure gcc.exe
is in path.
Rename mingw32-make.exe
to make.exe
Note
(The default Make utility in Eclipse is make. Renaming
mingw32-make.exe
to make.exe
just once is easier
than changing the property of every Eclipse C project)
Done.
Basic Unix commands like rm, cp, mv, etc are not available in Windows. Luckily, UnxUtils is at the rescue.
Download UnxUtils from http://sourceforge.net/projects/unxutils/
Add the location of wbin
to path .
e.g. If UnxUtils is unzipped to
C:\UnxUtils
,C:\UnxUtils\usr\local\wbin
has to be added to path.
Remove the UnxUtils make utility.
Warning
UnxUtils also distributes Make. The version, 3.78.1, is far more out dated than 3.81 from MinGW.
Possibly, the compiler from MSVC is free for personal use. It is possible to use the compiler form MSVC. Eclipse can use the compiler form MSVC. More about using MSVC is explained in the chapter on using MSVC But, Eclipse cannot use the debugger from MSVC.
[1] | todo:: Difference between EPL and GPL |
[2] | Don’t take my words legally. This may not be true. |