when I use g++. the compiler complains.