Instructs the compiler to recognize trigraph key combinations used to represent characters not found on some keyboards.
.-trigraph---. >>- -q--+-notrigraph-+-----------------------------------------><
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 |
---|---|
??= | # |
??( | [ |
??) | ] |
??/ | \ |
??' | ^ |
??< | { |
??> | } |
??! | | |
??- | ~ |
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.
The same is true for C++ programs.
To disable trigraph character sequences when compiling your C program, enter:
xlc myprogram.c -qnotrigraph
xlc++ myprogram.C -qnotrigraph
Related information