Skip to content
Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Preprocessor › #inclib

#inclib

Preprocessor directive

Syntax

#inclib "libname"

Description

Includes a library in the linking process as if the user specified -l libname on the command line.

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

'' incomplete code snippet

'' this will include libmystuff.a in the link process

#inclib "mystuff"

Category: Preprocessor
Kind: keyword


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