设置C / C ++的Windows构建环境的最佳方式 [英] Best way to setup a Windows build environment for C/C++

查看:152
本文介绍了设置C / C ++的Windows构建环境的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我想在Windows上使用GCC编译C / C ++。我看到的两个竞争平台是MinGW和Cygwin。每个都有自己的益处和局限性。 MinGW为Windows编译,而Cygwin需要cygwin .dll。但是在MinGW上安装库很困难,而在cygwin上使用setup.exe作为包管理器更容易。

Basically I want to compile C/C++ using the GCC on Windows. The two competing platforms, as i see it, are MinGW and Cygwin. Each have their own benifits and limitations. MinGW compiles for Windows, whereas Cygwin needs the cygwin .dll. However installing libraries on MinGW is difficult, whereas on cygwin it's easier, using the setup.exe as a 'package manager'.

我的问题是什么是最好的编译方法在Windows上。最好使用MinGW和与库的斗争(在这种情况下有一个简单的方法安装在MinGW上的库)。或者我应该使用Cygwin,如果是这样,我如何得到它编译而不需要cygwin .dll,有效地编译为正常的Windows。

My question is what's the best way to compile on Windows. Would it be better to use MinGW and struggle with libraries (in which case is there an easy way of installing libraries on MinGW). Or should I use Cygwin, if so how do I get it to compile without needing the cygwin .dll, effectively compile for normal Windows.

推荐答案

在Windows上编译的最简单和最好的方法是使用 visual studio expres 。这是免费的。使用cygwin的一个好理由是跨平台构建。使用gcc的一个很好的理由是它支持一些编译器糖果Microsoft编译器不。

The easiest and best way to compile on windows is to use visual studio express. It is free. A good reason for using cygwin is for cross platform builds. A good reason to use gcc is it supports some compiler candy the Microsoft compiler doesn't.

但是所有的VC ++ Express都是开发Windows的方式。

But all in all VC++ Express is the way to go for windows only development.

这篇关于设置C / C ++的Windows构建环境的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆