使用常规C编译器? [英] Use regular C compiler?

查看:80
本文介绍了使用常规C编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近刚安装了带有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


此致,Guido


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

Regards, Guido


这篇关于使用常规C编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆