You copied the Doc URL to your clipboard.

Using C++ libraries

There are two C++ libraries available, the libc++ library, and the Rogue Wave Standard C++ library.

Compiling with armclang

When using armclang to compile, use the -stdlib option to specify the C++ library to add to the system include path.

The options are:

  • libc++ to use the libc++ library. This is the default.
  • legacy_cpplib to use the Rogue Wave library.

Note

  • armclang automatically passes the corresponding --stdlib option to armlink.
  • The Rogue Wave C++ libraries are deprecated.

Linking with armlink

When using armlink to link files, use the --stdlib option to specify the C++ library to add to the system include path.

The options are:

  • infer. This is the default.
  • libc++.
  • legacy_cpplib.
  • none.

armlink looks at the object files, and if they contain Lib$Request$$cpplib it searches cpplib, otherwise it searches libcxx.

Examples

armclang -stdlib=libc++ ...

armlink --stdlib=infer ...

Related information