next index prev

g++

g++ is actually a script which calls gcc with the appropriate options in order to compile C++,
standard suffixes for C++ source files are: .C .cc .cxx .cpp or .c++.
g++ in general uses the same flags as gcc, (some of them become meaningless).

I would recommend using g++ like so:
g++ -Wall file1 [file2 [file3...]] -o output_file

next index prev