Please advise.

compile with g++ instead of gcc