I may not understand this completely, but I thought gcc and g++ were basically the same compiler. I used homebrew to install and link gcc 6.2.0 (see Mac OS X: Installed and linked gcc 6.2 with Homebrew, but gcc --version still says 4.9.2 ).
When I say which gcc I get /usr/local/Cellar/gcc/6.2.0/bin/gcc
When I say which g++ I get /usr/local/bin/g++
Did I miss a step or is my understanding way off?