mac 的 cpp 编译器路径是什么?

What is cpp compiler path for mac?

我想在 VScode 中指定 compilerPath 来编译 C++,但我不知道正确的路径应该是什么

OS: macOS BigSur

首先,我检查了我的 mac 中是否安装了 g++(C++ 编译器)。 为此,我去了 /usr/bin 然后我将 compilerPath 中的路径指定为 /usr/bin/g++