I use gcc for my C and C++. It is possible, but I guess for the beginner it's probably better to use the g++ as you said.
Then again, if it is Linux, you could always use one of the IDEs.
Anjuta works pretty well. I really like the way it seperates your functions with the expandable panes. Quite nice and handy when dealing with an enourmous amount of code.