How to install g++ on Conda under Linux?

Viewed 8583

I have tried

conda install -c conda-forge gcc

but it only installed gcc. I also need g++.

1 Answers

It ships under the package name gxx:

conda install -c conda-forge gxx

Generally, I prefer using the Conda Forge compilers package or one of its subpackages (e.g., cxx-compiler), as this specification works across platforms. For example, cxx-compiler will install g++ on Linux, clang++ on OSX, and vc on Windows.

Related