3.2. 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++.
-
I recommend using g++ like so:
g++ -Wall file1 [file2 [file3...]] -o output_file