This problem is so obvious. Basically <cc> cannot
compile and link C++ program. Even the simplest one
std::cout << "Hi there" << "\n";
It's very likely that even though you set the name of the
compiler to "g++", it still invokes "gcc" no matter what.
So when it's time to link the program, it cannot find all
kinds of C++ libraries.