简体   繁体   English

在没有 xcode 的 MacOS 上运行 C++

[英]Run C++ on MacOS without xcode

I don't have Xcode installed on my Mac OS 13.6 but I would like to run c++ on vs code.我的 Mac OS 13.6 上没有安装 Xcode,但我想在 vs 代码上运行 c++。 Is there a way to do that without the need for Xcode to be installed?有没有办法在不需要安装 Xcode 的情况下做到这一点? Also, can I run an older version of Xcode and run c++ without problems?另外,我可以运行旧版本的 Xcode 并运行 c++ 而没有问题吗?

Note: Would be great if someone posted a link for a tutorial.注意:如果有人发布了教程链接,那就太好了。

You may download and install LLVM 13.0.1 for Darwin or a small part of Xcode, Xcode command line tools: xcode-select --install .您可以下载并安装LLVM 13.0.1 for Darwin 或 Xcode、Xcode 命令行工具的一小部分: xcode-select --install

Both will result in installing clang++.两者都会导致安装 clang++。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM