如何使用Clang编译C ++? [英] How do I compile C++ with Clang?

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

问题描述

我已经在Ubuntu中使用apt-get安装了 Clang ,并且我可以使用它成功编译C文件。但是,我不知道如何通过它编译C ++。我需要做什么来编译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++?

推荐答案

命令 clang 表示C,而命令 clang ++ 表示C ++。

The command clang is for C, and the command clang++ is for C++.

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

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