Cygwin C ++ compiler
-
MinGW vs Cygwin: There are two layers for porting unix applications to windows:
- Cygwin. It tries to carefully emulate the environment, but it makes it difficult to integrate with native apps. The Cygwin library is either GPL or commercial licensed, so in order to link a commercial application with it, you need to purchase a license.
- MinGW . This is a much lighter layer that only emulates some basic stuff and requires more porting effort to get the app to work, but integrates better with native apps (paths are passed in native format and are only converted inside apps, don't use virtual mounts, etc.) .), I believe the licensing is also more liberal.
-
In fact, Windows is POSIX compliant, so none of this is required. Windows Services for Unix from Microsoft must be compatible.
The compiler
mingw
builds binaries using MinGW libraries, other options use the librarycygwin1
.
-
gcc / gcc4 are just different versions.
source to share
From looking at the contents of the gcc-g ++ package , it looks like gcc 3.x. So the difference between gcc4-g ++ and gcc-g ++ is whether you want gcc 3.x or 4.x.
Mingw is a minimalist development environment for native Microsoft Windows applications. See http://www.mingw.org/ . Presumably the mingw-gcc-g ++ package will allow you to target (i.e. generate binaries that use).
source to share