-qtrigraph

Description

Instructs the compiler to recognize trigraph key combinations used to represent characters not found on some keyboards.

Syntax

Read syntax diagramSkip visual syntax diagram        .-trigraph---.
>>- -q--+-notrigraph-+-----------------------------------------><
 

Notes

A trigraph is a combination of three-key character combinations that let you produce a character that is not available on all keyboards.

The trigraph key combinations are:

Key combination Character produced
??= #
??( [
??) ]
??/ \
??' ^
??< {
??> }
??! |
??- ~

C only The default -qtrigraph setting can be overridden by explicitly setting the -qnotrigraph option on the command line.

An explicit -qnotrigraph specification on the command line takes precedence over the -qtrigraph setting normally associated with a given -qlanglvl compiler option, regardless of where the -qnotrigraph specification appears on the command line.

C++ only The same is true for C++ programs.

Examples

To disable trigraph character sequences when compiling your C program, enter:

xlc myprogram.c -qnotrigraph
  1. To disable trigraph character sequences when compiling your C++ program, enter:
    xlc++ myprogram.C -qnotrigraph

Related information