You copied the Doc URL to your clipboard.

--library

This option enables the linker to search a static library.

Syntax

--library=name

Links with the static library, libname.a.

Usage

The --library option enables you to link against a library without specifying the full library filename 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