You copied the Doc URL to your clipboard.

-stdlib

Specifies the C++ Library to add to the system include path.

Syntax

-stdlib=library_option

Where library_option is one of the following:

libc++

The default library. Adds include/libcxx to the C++ system include path.

legacy_cpplib

Adds include/cpplib to the C++ system include path. This option is for the Rogue Wave C++ libraries.

Note

The Rogue Wave C++ libraries are deprecated.

Note

  • When performing a compile and link as a single operation, armclang automatically passes --stdlib=library_option to armlink.
  • The clang option -stdlib=libstdc++ is unsupported.

Related information