11.73 --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
Non-ConfidentialPDF file icon PDF versionDUI0803J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.