Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set visual studio 2008 compiler for c not c++

I have installed visual studio 2008 and i want to create some simple applications using C language. I do this by creating c++ console applications but i want the compiler to work for C not C++. Any way to accomplish this or i need another compiler if i want to deal with C?

like image 700
user158625 Avatar asked Nov 22 '25 04:11

user158625


1 Answers

Use .c file extension instead of .cpp, those files will be compiled as C-only code by default in a C/C++ Visual Studio project.

like image 88
Klaim Avatar answered Nov 23 '25 16:11

Klaim