Next: Security enhancement options, Previous: Compiling with optimization, Up: Top [Contents][Index]
This chapter describes how to use GCC to compile programs written in C++, and the command-line options specific to that language.
The GNU C++ compiler provided by GCC is a true C++ compiler—it compiles C++ source code directly into assembly language. Some other C++ “compilers” are translators which convert C++ programs into C, and then compile the resulting C program using an existing C compiler. A true C++ compiler, such as GCC, is able to provide better support for error reporting, debugging and optimization.
• Compiling a simple C++ program: | ||
• C++ compilation options: | ||
• Using the C++ standard library: | ||
• Templates: |