Cygwin C ++ compiler

When installing Cygwin when choosing a C ++ compiler, I see the following options:
mingw-gcc-g++

, gcc4-g++

and gcc-g++


Can anyone tell me the difference between them? And what would I like to use?

Also, what's the point of headings gcc-mingw-g++

?
What is Mingw32 support?

+3


source to share


2 answers


  • 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 library cygwin1

      .

  • gcc / gcc4 are just different versions.



+3


source


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).

+1


source







All Articles