You copied the Doc URL to your clipboard.

Arm Compiler armlink User Guide : --library=name

--library=name

Enables the linker to search a static library without you having specifying the full library filename on the command-line.

Note

Not supported in the Keil® Microcontroller Development Kit (Keil MDK).

Syntax

--library=name

Links with the static library, libname.a.

Usage

The order that references are resolved to libraries is the order that you specify the libraries on the command line.

Example

The following example shows how to search for libfoo.a before libbar.a:

--library=foo --library=bar
Was this page helpful? Yes No