g++ is working fine