I would like to do some C development in Windows environment using Visual Studio 2010. There are a few similar questions on this topic, but they are all based on that you are creating a Win32 console application, and a C++ project.
How can I do C development using only .c
and .h
files as I do in Unix? without creating a C++ projects containing tons of files.
It is possible to do C compiling with the cl
compiler from outside of Visual Studio 2010, see Walkthrough: Compiling a C Program. But how can I do this compilation and execution/debugging from inside Visual Studio 2010?
UPDATE
- I have tried to create a C++ project (Win32 Console Application) and only add
.c
files to it. It works but it creates tons of files. - I have tried with a C++ project (Empty project), but it also created a lot of project files.
- Basically what I want is to only create
.c
and.h
files, use thecl
compiler, and use Visual Studio 2010 as a text editor. And use a command to compile from the text edior, but it seems like I have to compile in a command prompt.