-qeh (C++ only)

Pragma equivalent

None.

Purpose

Controls whether exception handling is enabled in the module being compiled.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-eh---.   
>>- -q--+-noeh-+-----------------------------------------------><

Defaults

-qeh

Usage

When -qeh is in effect, exception handling is enabled. If your program does not use C++ structured exception handling, you can compile with -qnoeh to prevent generation of code that is not needed by your application.

Specifying -qeh also implies -qrtti. If -qeh is specified together with -qnortti, RTTI information will still be generated as needed.

Predefined macros

__EXCEPTIONS is predefined to 1 when -qeh is in effect; otherwise, it is undefined.

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us