简体   繁体   English

编写ANSI C代码的资源

[英]Resources to Write ANSI C Code

The last time I heavily used C was years ago, and it was strictly done on the Windows platform. 我上次大量使用C的时间是在几年前,它严格在Windows平台上完成。

Now, I am taking a class where it is required to develop programs to be ANSI C compliant and the code will be compiled using gcc 现在,我上一堂课,要求开发符合ANSI C的程序,并且将使用gcc编译代码

we a are required to compile the code using: gcc -g -ansi -pedantic -Wall 我们需要使用以下代码来编译代码: gcc -g -ansi -pedantic -Wall

how can I reproduce this on MSVS2010 ? 如何在MSVS2010上重现此MSVS2010 I don't like Ubuntu. 我不喜欢Ubuntu。

If you only dislike Ubuntu, there are other options for using GCC. 如果您只讨厌Ubuntu,那么还有其他使用GCC的选项。 For example, you can look into MinGW, which is a full set up of gcc and all related tools for windows. 例如,您可以研究MinGW,它是gcc的完整集合以及所有与Windows相关的工具。 There are also a few IDEs, like Eclipse and Code::Blocks which I'm pretty sure ship with a C compiler that you can configure however you need. 还有一些IDE,例如Eclipse和Code :: Blocks,我敢肯定它们随C编译器一起提供,您可以根据需要进行配置。 There are also other linux distributions or the option of mac if you'd like to try those out. 如果您想尝试这些版本,还可以使用其他Linux发行版或mac的选项。

(Sorry, don't know anything about MSVC, but GCC is pretty much the standard) (抱歉,对MSVC一无所知,但GCC几乎是标准)

而且使用Ubuntu仍然可能有用,因为我认为您的课程稍后会为您提供使用Posix系统调用的练习,然后最好使用一些Linux发行版(如果您不喜欢Ubuntu图形界面Unity,则可以使用其他东西)。

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

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