如何用clang编译C ++ [英] How do I compile C++ with clang
本文介绍了如何用clang编译C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ubuntu中使用apt-get安装了 clang ,我可以使用它来成功编译C文件。但是,我不知道如何编译C ++通过它。 c $ >用于C,命令 clang ++
用于C ++。
I have installed clang by using apt-get in ubuntu and I can successfully compile C files using it. However, I have no idea how to compile C++ through it. What do I need to do to compile C++?
解决方案
The command clang
is for C, and the command clang++
is for C++.
这篇关于如何用clang编译C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文