From: Jonathan Wakely Table of Contents Table of Contents Table of Contents
Table 3.1. C++ Command Options
Option Flags | Description | |
---|---|---|
-std=c++98 or -std=c++03
| Use the 1998 ISO C++ standard plus amendments. | |
-std=gnu++98 or -std=gnu++03
- | As directly above, with GNU extensions. | |
-std=c++11 | Use the 2011 ISO C++ standard. | |
-std=gnu++11 | As directly above, with GNU extensions. | |
-std=c++14 | Use the 2014 ISO C++ standard. | |
-std=gnu++14 | As directly above, with GNU extensions. | |
-fexceptions | See exception-free dialect | |
-frtti | As above, but RTTI-free dialect. | |
-pthread | For ISO C++11 + | As directly above, with GNU extensions. |
-std=c++11 | Use the 2011 ISO C++ standard. | |
-std=gnu++11 | As directly above, with GNU extensions. | |
-std=c++14 | Use the 2014 ISO C++ standard. | |
-std=gnu++14 | As directly above, with GNU extensions. | |
+ -fno-exceptions
+ | See exception-free dialect | |
+ -fno-rtti
+ | As above, but RTTI-free dialect. | |
-pthread | For ISO C++11
<thread> ,
<future> ,
<mutex> ,
@@ -27,6 +31,12 @@
| |
-lstdc++fs | Linking to libstdc++fs
is required for use of the Filesystem library extensions in
<experimental/filesystem> .
+ | |
-lstdc++_libbacktrace | Until C++23 support is non-experimental, linking to
+ libstdc++_libbacktrace.a
+ is required for use of the C++23 type
+ std::stacktrace
+ and 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> .
diff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml
index 36b86702d224..0b9a0c985184 100644
--- a/libstdc++-v3/doc/xml/manual/using.xml
+++ b/libstdc++-v3/doc/xml/manual/using.xml
@@ -69,12 +69,16 @@
|