December 2021
Intermediate to advanced
576 pages
19h 3m
English
“Never underestimate the power of a simple tool.”
—Craig Bruce
In this appendix, we introduce some basic programming tools that can help us achieve our programming goals.
g++One of the most popular C++ compilers is g++, the C++ version of the C compiler gcc. The acronym used to stand for Gnu C Compiler, but the compiler supports several other languages (Fortran, D, Ada, ...) and the name was changed to Gnu Compiler Collection while keeping the acronym. This section gives a short introduction to how to use it.
The following command:
g++ -o hello hello.cpp
compiles the C++ source file hello.cpp into the executable hello. The flag -o can be omitted. Then the executable will be named a.out (for bizarre historical ...
Read now
Unlock full access