std

Tells the compiler to implement ISO C90 plus GNU extensions.

IDE Equivalent

None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -std=n
Windows:    None

Arguments

n      Is the GNU version. Possible values are:

 

c89

Enable C89 support for C programs.

 

c99

Enable C99 support for C programs.

 

gnu89

Implements ISO C90 plus GNU extensions.

  gnu++98     This is the same as specifying -std=gnu90.

Default

-std=gnu89      The compiler implements ISO C90 plus GNU extensions.

Description

This option tells the compiler to implement ISO C90 plus GNU extensions. Some C99 features are also implemented.

Alternate Options

None