-
C & visual studio 2008
Is it possible to write, compile, run and debug C programs with Visual Studio 2008? I got it hoping I could use it instead of vim but C isn't on the list of supported languages and I can't find a way to make it work. Can some one please tell me how to use Visual Studio 2008 with C or suggest another (free) IDE for C programming?
Thanks in advance.
-
When you create a project and start adding source files to the project just name them with a .c extension instead of .cpp. When the compiler does it's job it will treat any file with a .c extension as a C source file instead of the default which is C++. There are also ways in which you can tell the IDE to treat a file as C source code even if it does have a .cpp extension ("Project->Properties->Configuration Properties->C/C++->Advanced->Compile As" should be set to "Compile as C code" instead of "Compile as C++ Code"). The rules for compiling C versus C++ are different and the IDE will do the right thing if you choose the proper options.
-
Thank You
It's working now, thank you for you help.