Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public

Visible to Intel only — GUID: GUID-C9114DD8-2D48-4D82-B05B-3D80123F80BD

Document Table of Contents

gcc, gcc-sys

Determines whether certain GNU macros are defined or undefined.

Syntax

Linux:

-gcc

-no-gcc

-gcc-sys

macOS:

-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 undefined.

Option

Description

-gcc

Defines GNU macros.

-no-gcc

Undefines GNU macros.

-gcc-sys

Defines GNU macros only during compilation of system headers.

IDE Equivalent

Visual Studio: None

Eclipse: Preprocessor > gcc Predefined Macro Enablement

Xcode: Preprocessor > Predefine gcc Macros

Alternate Options

None