简体   繁体   English

编译器安装很简单

[英]Compiler installation which is simple

Is there any compiler for C++ that works under W7 and is easy to install, except VC++? 除了VC ++,是否有任何适用于W7且易于安装的C ++编译器?

I never get these scripts and linux emulations to work, and really just want to try another compiler. 我从来没有使这些脚本和linux仿真工作,而是只想尝试另一个编译器。

The nuwen distribultion of the GCC compiler includes the compiler and all necessary supporting tools and libraries as a single Windows installer. GCC编译器的nuwen发行版包括编译器以及所有必要的支持工具和库,它们是单个Windows安装程序。 You don't need any Linux emulation in order to use it. 您不需要任何Linux仿真即可使用它。 A similar, slightly smaller pacakage is TDM's MinGW build . TDM的MinGW版本与此类似,但规模略小。 Both of these are on GCC 4.5 (as of Aug-2010). 两者均在GCC 4.5上发布(截至2010年8月)。

If you want an IDE, then Code::Blocks also comes as a complete system. 如果需要IDE,则Code :: Blocks也作为一个完整的系统提供。 This has recently (Jul-2010) been heavily improved, and comes with the GCC 4.4.1 compiler, if you want it. 最近(2010年7月)对此进行了重大改进,并且如果需要的话,还提供了GCC 4.4.1编译器。 You might also want to look at CodeLite , which is also fairly easy to install. 您可能还想看看CodeLite ,它也很容易安装。

Mingw is generally easier than cygwin. Mingw通常比cygwin容易。 It doesn't come with a port of every unix tools as cygwin does, but the resulting .exes are native (no need for cygwin.dll) 它并没有像cygwin那样附带所有unix工具的端口,但是生成的.exes是本机的(不需要cygwin.dll)

Cygwin includes the gcc compiler and also provides a Unix look and feel which will be the other thing you need to get scripts and linux emulations to work. Cygwin包括gcc编译器,还提供Unix外观,这是使脚本和linux仿真正常工作所需要的另一件事。 (This inlcude the libraries Unix libraries will have functions that VC does not have which might be the issue that you are having) (这包括库Unix库将具有VC不具备的功能,这可能是您遇到的问题)

Qt for Windows comes with MingW, which I've found to be reasonably easy to use and install, and the LGPL version is priced right (free as in beer). 适用于Windows的Qt随附MingW,我发现它相当容易使用和安装,并且LGPL版本的价格正确(像啤酒一样免费)。 You don't need to use any the Qt libraries in your application. 您无需在应用程序中使用任何Qt库。 I'm not sure which version of GCC is currenlty bundled with it. 我不确定哪个版本的GCC与它捆绑在一起。 There are no licensing restrictions for the software you develop (unless you're actually modifying and redistributing source code of the LGPL version of Qt). 您开发的软件没有许可限制(除非您实际上是在修改和重新分发Qt的LGPL版本的源代码)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM