Table of Contents
The set of features available in the GNU C++ library is shaped by several GCC Command Options. Options that impact libstdc++ are enumerated and detailed in the table below.
      The standard library conforms to the dialect of C++ specified by the
      -std option passed to the compiler.
      By default, g++ is equivalent to
      g++ -std=gnu++17 since GCC 11, and
      g++ -std=gnu++14 in GCC 6, 7, 8, 9, and 10, and
      g++ -std=gnu++98 for older releases.
    
Table 3.1. C++ Command Options
| Option Flags | Description | 
|---|---|
| -std | Select the C++ standard, and whether to use the base standard or GNU dialect. | 
| -fno-exceptions | See exception-free dialect | 
| -fno-rtti | As above, but RTTI-free dialect. | 
| -pthread | For ISO C++11 <thread>,<future>,<mutex>,
        or<condition_variable>. | 
| -latomic | Linking to libatomicis required for some uses of ISO C++11<atomic>. | 
| -lstdc++fs | Linking to libstdc++fsis required for use of the Filesystem library extensions in<experimental/filesystem>. | 
| -lstdc++_libbacktrace | Until C++23 support is non-experimental, linking to libstdc++_libbacktrace.ais required for use of the C++23 typestd::stacktraceand related types in<stacktrace>. | 
| -fopenmp | For parallel mode. | 
| -ltbb | Linking to tbb (Thread Building Blocks) is required for use of the
        Parallel Standard Algorithms and execution policies in <execution>. |