Intel® C++ Compiler XE 13.1 User and Reference Guides

EH

Specifies the model of exception handling to be performed.

IDE Equivalent

Windows: Code Generation > Enable C++ Exceptions

Linux: None

OS X: None

Architectures

All

Syntax

Linux and OS X:

None

Windows:

/EHtype

/EHtype-

Arguments

type

Specifies the exception handling model. Possible values are:

a

Specifies the asynchronous C++ exception handling model.

s

Specifies the synchronous C++ exception handling model.

c

Tells the compiler to assume that extern "C" functions do not throw exceptions.

If you specify c, you must also specify a or s.

Default

OFF

Some exception handling is performed by default.

Description

This option specifies the model of exception handling to be performed.

If you specify the negative form of the option, it disables the exception handling performed by type.

Alternate Options

/EHsc

Linux and OS X: None

Windows: /GX

See Also


Submit feedback on this help topic