使用常规C编译器? [英] Use regular C compiler?
问题描述
我最近刚安装了带有C ++的Visual Studio 2017。 有谁知道在这个IDE中是否可以使用常规C编译器? 我试图避免使用C ++编译器,因为它不能识别诸如"strtok"之类的C函数。
或"fstream.h"可能还有很多与C相关的其他功能。 我现在更愿意不使用C ++。
谢谢!
Robert C
Hello,
当您使用.c而不是.cpp命名源文件时,它就是一个C文件。您也可以使用编译器选项/ Tc。
阅读:
https://msdn.microsoft.com/en-us/library/bb384838.aspx?f=255&MSPPError=-2147217396
I just recently installed Visual Studio 2017 with C++. Does anyone know if it's possible to use a regular C compiler in this IDE? I'm trying to avoid the C++ compiler because it doesn't recognize C functions such as "strtok" or "fstream.h" and probably many other functions related to C. I just prefer to not to use C++ for now.
Thanks!
Robert C
Hello,
when you name the source file with .c instead of .cpp, then it is a C-file. You can also use the compiler option /Tc.
Read this: https://msdn.microsoft.com/en-us/library/bb384838.aspx?f=255&MSPPError=-2147217396
这篇关于使用常规C编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!