C++ compile

gcc has a few front-ends for different languages, eg:
gcc - C/C99
g++ - C++
gcj - Java / JVM
g77 - Fortran 77
gfortran - Fortran 95
gnat - Ada (work in progress)
gpc - Pascal
gobjc - Objective C

to compile a .cpp file under terminal use

g++ -o hello hello.cpp

Leave a Comment

Before leaving a comment, please ensure you have read and understand my comments policy and my privacy policy. Any comment that does not abide by the comment policy will be deleted immediately.