Skip to content

Compiler Option L

Paul Squires edited this page Oct 14, 2026 · 3 revisions

Home › Compiler Option: -l

Compiler Option: -l

Add a library file to the linker's list.

Syntax

-l < libname >

Parameters

libname

Name of the library to link in. The library file name's extension should not be included. For example, when using -l something, the linker will look for the files:

Description

The -l compiler option adds a library file to the linker's list, to be linked into the final executable or library if needed to satisfy dependencies.

See also


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally