Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

fcommon

Determines whether the compiler treats common symbols as global definitions.

Syntax

Linux:

-fcommon

-fno-common

Windows:

None

Arguments

None

Default

-fcommon

The compiler does not treat common symbols as global definitions.

Description

This option determines whether the compiler treats common symbols as global definitions and to allocate memory for each symbol at compile time.

Option -fno-common tells the compiler to treat common symbols as global definitions. When using this option, you can only have a common variable declared in one module; otherwise, a link time error will occur for multiple defined symbols.

IDE Equivalent

None

Alternate Options

None