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.

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

There are two options; libc++ to use the libc++ library, or legacy_cpplib to use the Rogue Wave library.

The default is libc++.

Example:

-stdlib=libc++

Note

armclang automatically passes the corresponding --stdlib option to armlink.

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

There are four options; infer, libc++, legacy_cpplib, or none.

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

Example:

--stdlib=infer

Related information

Was this page helpful? Yes No