Skip to content

Compiler Option S

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

Home › Compiler Option: -s

Compiler Option: -s

Sets the executable subsystem

Syntax

-s < subsystem >

Parameters

subsystem

The executable subsystem: gui or console.

Description

The -s compiler option specifies the executable subsystem. Allowed subsystems are gui and console (by default, console is used). Specifying a gui subsystem prevents the console window from appearing behind the program window.

The intrinsic macro __FB_GUI__ is set to non-zero (-1) if the option with gui as subsystem was specified, and set to zero (0) otherwise.

Platform Differences

  • Supported on Windows and Cygwin only.

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