如何从Visual Studio编译C源代码?

时间:2013-11-18 03:21:46

标签: c visual-studio compiler-construction

我在GNU gcc / cc上创建并编译了简单的C源文件。但是,当我想在Windows上的Visual Studio中编译时,它给了我很多错误。是否有任何特定的设置要为VS编译器设置,以便很好地编译C源代码。谢谢

C源(标准样式?)

   #include <..>

   //function prototype

   int main(){
     // my code here
   }
   /* all my other functions below this */

刚发现我可以使用cl.exe。会先尝试这个。

0 个答案:

没有答案