syntaxonly

Applies to C

Purpose

Causes the compiler to perform syntax checking without generating an object file.

Syntax


Syntax Diagram

Notes

The -P, -E, and -C options override the -qsyntaxonly option, which in turn overrides the -c and -o options.

The -qsyntaxonly option suppresses only the generation of an object file. All other files (listings, etc) are still produced if their corresponding options are set.

Examples

To check the syntax of myprogram.c without generating an object file, enter:

xlc myprogram.c -qsyntaxonly

or

xlc myprogram.c -o testing -qsyntaxonly

Note that in the second example, the -qsyntaxonly option overrides the -o option so no object file is produced.

Related References

Compiler Command Line Options
C
c
E
o
P IBM Copyright 2003