首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cygwin C++编译器

Cygwin C++编译器
EN

Stack Overflow用户
提问于 2012-03-14 23:10:34
回答 2查看 1.9K关注 0票数 3

安装Cygwin时,当选择C++编译器时,我看到以下选项:

mingw-gcc-g++gcc4-g++gcc-g++

有谁能告诉我它们之间的区别吗?我想用哪一个呢?

还有,gcc-mingw-g++头的意义是什么?

什么是"Mingw32支持“?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-03-14 23:32:41

  • MinGW与Cygwin:将unix应用程序移植到windows有两个层次:

代码语言:javascript
复制
- 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库。

  • gcc/gcc4只是不同的版本。
票数 3
EN

Stack Overflow用户

发布于 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为目标(即构建使用的二进制文件)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9704641

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档