Causes the compiler to perform syntax checking without generating an object file.
>>- -q--syntaxonly---------------------------------------------><
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, such as listing files, are still produced if their corresponding options are set.
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 information