gcc

Determines whether certain GNU macros are defined or undefined.

IDE Equivalent

Windows: None

Linux: Preprocessor > gcc Predefined Macro Enablement

Mac OS X: Preprocessor > Predefine gcc Macros

Architectures

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

-gcc

-no-gcc

-gcc-sys

Windows:

None

Arguments

None

Default

-gcc

The compiler defines the GNU macros __GNUC__, __GNUC_MINOR__, and __GNUC_PATCHLEVEL__

Description

This option determines whether the GNU macros __GNUC__, __GNUC_MINOR__, and __GNUC_PATCHLEVEL__ are defined or defined.

Option

Description

-gcc

Defines GNU macros

-no-gcc

Undefines GNU macros

-gcc-sys

Defines GNU macros only during compilation of system headers

Alternate Options

None