安装Cygwin时,当选择C++编译器时,我看到以下选项:
mingw-gcc-g++、gcc4-g++和gcc-g++
有谁能告诉我它们之间的区别吗?我想用哪一个呢?
还有,gcc-mingw-g++头的意义是什么?
什么是"Mingw32支持“?
发布于 2012-03-14 23:32:41
- Cygwin. This tries to emulate environment closely, but that makes it more difficult to integrate with native applications. Cygwin library is dual-licensed GPL or commercial, so to link commercial application against it, you need to purchase a license.
- [MinGW](http://www.mingw.org/). This is much lighter layer that only emulates some basic things and requires more porting effort to get the application working, but integrates better with native applications (paths are passed in native format and only converted inside the applications, does not use virtual mounts etc.). I believe the licensing is also more liberal.
- In fact, Windows are POSIX compliant, so none of that should be actually needed. [Windows Services For Unix](http://www.microsoft.com/download/en/details.aspx?id=274) from Microsoft should provide compatibility.mingw编译器使用MinGW库构建二进制文件,其他变体使用cygwin1库。
发布于 2012-03-14 23:31:22
从the contents of gcc-g++ package上看,它似乎是gcc 3.x。所以gcc4-g++和gcc-g++的区别在于你想要的是gcc 3.x还是4.x。
Mingw是“一个用于原生Microsoft Windows应用程序的最低限度的开发环境”。请参阅:http://www.mingw.org/据推测,mingw-gcc-g++包将允许您以mingw为目标(即构建使用的二进制文件)。
https://stackoverflow.com/questions/9704641
复制相似问题