On Mon, Dec 26, 2022 at 16:27:48 -0800, kromak wrote:
> g++? Doesn't seem more reasonable to look for the actual name of the
> compiler? Or even better, to look for both?
`c++` is the vendor-agnostic way of running a C++ compiler. Since there
are only a handful of implementations these days, it might seem
anachronistic, but `cc` is the POSIX-y way to get "whatever the platform
C compiler is" and is quite handy for portable build scripts. `c++` is
the same for C++.
--Ben