如何编译C程序在Windows 7? [英] How to compile C programming in Windows 7?

查看:142
本文介绍了如何编译C程序在Windows 7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找免费的工具来编译在Windows 7的C程序我总是编译在Ubuntu C code。在过去使用gcc。所以,我怎么能编译C code在Windows 7?请教我。 :)

I am looking for free tools to compile C programs on Windows 7. I've always compiled C code on Ubuntu using gcc in the past. So, how can I compile C code on Windows 7? Please teach me. :)

推荐答案

的MinGW 使用一个相当老GCC的版本(3.4.5,我相信),并且已经有一段时间没有更新了。如果你已经习惯于使用GCC工具集和只是希望让你的脚在Windows编程潮湿,这可能是一个不错的选择。有很多伟大的IDE可以使用该编译器。

MinGW uses a fairly old version of GCC (3.4.5, I believe), and hasn't been updated in a while. If you're already comfortable with the GCC toolset and just looking to get your feet wet in Windows programming, this may be a good option for you. There are lots of great IDEs available that use this compiler.

编辑:的显然我错了;这就是我得到讲的东西我不是很了解。托朗指出,有一个项目,旨在提供MinGW的工具包与海湾合作委员会的当前版本。从他们的网站你可以下载它。

Apparently I was wrong; that's what I get for talking about something I know very little about. Tauran points out that there is a project that aims to provide the MinGW toolkit with the current version of GCC. You can download it from their website.

结果
但是,我不知道,我可以推荐它严重的Windows开发。如果你不是一个理想化的变形金刚迷谁不能忍受以往任何时候都使用微软软件的概念,我的的建议调查的的Visual Studio ,它自带微软的C / C捆绑++编译器。在 防爆preSS版本 (其中包括相同的编译器为所有付费的版本)可以下载完全免费的。除了编译器,Visual Studio中还提供了一个世界级的IDE,使得开发Windows的特定的应用程序变得更加容易。是的,批评者会罗嗦了有关的事实,它不完全符合标准,但这样是编写Windows应用程序的世界。他们永远不会成为真正的便携,一旦你包括 WINDOWS.H ,所以大多数理想主义的执着只是最终被浪费了时间。


However, I'm not sure that I can recommend it for serious Windows development. If you're not a idealistic fanboy who can't stomach the notion of ever using Microsoft software, I highly recommend investigating Visual Studio, which comes bundled with Microsoft's C/C++ compiler. The Express version (which includes the same compiler as all the paid-for editions) is absolutely free for download. In addition to the compiler, Visual Studio also provides a world-class IDE that makes developing Windows-specific applications much easier. Yes, detractors will ramble on about the fact that it's not fully standards-compliant, but such is the world of writing Windows applications. They're never going to be truly portable once you include windows.h, so most of the idealistic dedication just ends up being a waste of time.

这篇关于如何编译C程序在Windows 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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