我可以使用C ++编译器来编译C源代码吗? [英] can i use c++ compiler to compile c source code?

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

问题描述


可能重复:

我可以期望用C ++编译器编译C代码什么问题?

很好奇我是否可以使用c ++编译器来编译c源代码?无论如何,尚有任何编译器完全支持c99标准吗?

Just curious whether I could make use of a c++ compiler to compile c source code??Anyway is there any compiler that fully support c99 standard yet??

推荐答案

C ++不是C的超集。在某些地方它们有所不同,这意味着某些C代码不会

C++ is not a superset of C. There are places where they differ, which means some C code will not compile in C++ mode.

对于C99支持,GCC和Clang是最接近的。 Microsoft不支持C99,而只关注C ++(在某些地方与C99重叠)。

As for C99 support, GCC and Clang are the closest. Microsoft does not support C99, and only focuses on C++ (which overlaps with C99 in places).

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

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