Search code examples
cvisual-studioansi-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.

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

we a are required to compile the code using: gcc -g -ansi -pedantic -Wall

how can I reproduce this on MSVS2010? I don't like Ubuntu.


Solution

  • If you only dislike Ubuntu, there are other options for using GCC. For example, you can look into MinGW, which is a full set up of gcc and all related tools for 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. There are also other linux distributions or the option of mac if you'd like to try those out.

    (Sorry, don't know anything about MSVC, but GCC is pretty much the standard)