gcc

Defines or undefines certain GNU macros.

IDE Equivalent

Windows: None

Linux: Preprocessor > gcc Predefined Macro Enablement

Mac OS: Preprocessor > Do Not Predefine gcc Macros

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -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 and when they are 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