Maybe changing gcc to g++ will work