GNU
GNU是一个自由软件工程项目,GNU工程已经开发了一个被称为“GNU”(GNU是“不是UNIX”的缩写)的、对Unix向上兼容的完整的自由软件系统(free software system)。
gcc与g++区别
- GCC:GNU编译器集合,涉及所有由GNU编译器所支持的不同的语言。
- GCC:GNU C编译器
- G ++:GNU C ++编译器
- GCC编译:.C/.cpp文件分别作为C和C ++。
- G ++编译:.C/.cpp文件,但他们都将被视为C++文件。此外,如果你使用G ++来链接目标文件,它会自动链接到STD C ++库(GCC并没有这样做)。
- GCC编译C文件具有较小的预定义宏。
- GCC编译的.cpp和g++编译的* .c/.cpp文件有一些额外的宏。
C++编译器MinGW与Cygwin
- MinGW只有window平台,对window平台支持比较好,编译出文件相对cygwin小。
- cygwin时跨平台的,支持window平台原理是把unix的api映射到window的api,所以编译速度和文件大小相对较大。
- 推荐 使用MinGW
MinGW
官网下载后,下载相关的包特别慢,几乎都是下载失败,不推荐使用。
mingw的编译发行版常见的有两个: MinGW Distro 和 TDM-GCC. MinGW Distro中更是包含了boost库,不用我们再编译,而且都是最新的库,非常方便。
MinGW-builds ,直接去MinGW-builds这里下就好。优点是x86/x64,异常处理:siji/dwarf ,线程模型:posix/Win32都比较全,自己去选择适合自己的就好,缺点是版本有点老,最高到4.8.1不过是修过很多次的Rev5。
http://nuwen.net/mingw.html 优点是编译器比较新,而且自带的第三方库比较丰富,缺点是不像上面那个那么多选择,而且只有x64版本的。
http://nuwen.net/mingw.html 优点是编译器比较新,而且自带的第三方库比较丰富,缺点是不像上面那个那么多选择,而且只有x64版本的。
推荐使用MinGW Distro
Clion ide
- 下载网址http://www.jetbrains.com/clion/download/#section=windows-version
- 激活码:http://blog.sina.com.cn/s/blog_a2a39c680102ww28.html copy所有到clion中激活
在 window 平台搭建 CLion 集成开发环境
- 下载安装MingW( MinGW Distro)
- 下载安装clion
在 Linux 平台搭建 CLion 集成开发环境
- 下载
- 解压
- cd clion/bin
- ./clion.sh
- 快捷方式