To compile c++ files it is best to use, you guessed it...g++
It works the same way as gcc, except it's for c++ files.
For gcc, I do not quite know about compiling c++ files on it, but I think you have to provide a link to the stdcpp? libs using -l...
But best use g++ and you should be fine.
Cheers,
Alf829
|