I would like to do some C development in Windows using Visual Studio 2010. There are several similar questions on this topic, but all of them are based on the fact that you are creating a Win32 console application and a C ++ project.
How do I create C development using only .c and .h files, as I do on Unix? without creating C ++ projects containing many files.
You can do this C compilation with the cl compiler from outside of Visual Studio 2010, see the Walkthrough. Compilation of the program C. But how can I do this compilation and execution / debugging from Visual Studio 2010?
UPDATE
- I tried to create a C ++ project (Win32 console application) and add
.c files to it. It works, but it creates a lot of files. - I tried the C ++ project (empty project), but it also created a lot of project files.
- Basically what I want is to just create
.c and .h files, use the compiler cl , and use Visual Studio 2010 as a text editor. And use the command to compile from edior text, but it seems to me that I should do the compilation on the command line.
Jonas source share