Skip to content

Compiler Option D

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

Home › Compiler Option: -d

Compiler Option: -d

Add a preprocessor definition

Syntax

-d < name=value >

-d < name >

Parameters

name

Name of the preprocessor macro to define. No parameters are allowed.

value

Value to give to the macro. If omitted, it will be defined as 1

Description

The -d compiler option adds a preprocessor macro to all source files. The same as using the preprocessor directive #define or #macro.

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