MAC default compiler for cpp is c++, cant be link by g++.
annan weight