简体   繁体   English

如何在Visual Studio 2008中编译C代码?

[英]How to compile C code in Visual Studio 2008?

我想在VS 2008中用C编写一个控制台应用程序。我需要选择哪种项目类型以及为了做到这一点我必须设置哪些属性?

C++ - Projects - Win32 Project - Console Application. C ++ - 项目 - Win32项目 - 控制台应用程序。 When application is created, rename .cpp files to .c. 创建应用程序时,将.cpp文件重命名为.c。 In the Project Properties, C++, Advanced, select Compile As C code (/TC). 在Project Properties,C ++,Advanced中,选择Compile As C code(/ TC)。

Win32 Console Project.... Win32控制台项目....

then add files....select .cpp, but call it a .c :) 然后添加文件....选择.cpp,但称之为.c :)

Visual C ++ - > Win32 - > Win32控制台应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM