Matthew Murdock
Matthew Murdock

Reputation: 761

How to compile C code in Visual Studio 2008?

I want to write a console application in C in VS 2008. What project type do I need to select and what properties I must set in order to do this?

Upvotes: 3

Views: 4708

Answers (3)

Alex F
Alex F

Reputation: 43311

C++ - Projects - Win32 Project - Console Application. When application is created, rename .cpp files to .c. In the Project Properties, C++, Advanced, select Compile As C code (/TC).

Upvotes: 6

Gary
Gary

Reputation: 5732

Visual C++ -> Win32 -> Win32 Console Application

Upvotes: 0

Keith Nicholas
Keith Nicholas

Reputation: 44288

Win32 Console Project....

then add files....select .cpp, but call it a .c :)

Upvotes: 0

Related Questions