Skip to Content
Discovering Modern C++: An Intensive Course for Scientists, Engineers, and Programmers
book

Discovering Modern C++: An Intensive Course for Scientists, Engineers, and Programmers

by Peter Gottschling
December 2015
Intermediate to advanced content levelIntermediate to advanced
480 pages
14h 45m
English
Addison-Wesley Professional
Content preview from Discovering Modern C++: An Intensive Course for Scientists, Engineers, and Programmers

Appendix B. Programming Tools

In this chapter, we introduce some basic programming tools that can help us to achieve our programming goals.

B.1 gcc

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 reasons as an abbreviation of “assembler output”). As soon ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Discovering Modern C++, 2nd Edition

Discovering Modern C++, 2nd Edition

Peter Gottschling

Publisher Resources

ISBN: 9780134383682Purchase book