Input control

The options in this category specify the type and location of your source files.
Table 1. Compiler input options
Option name Equivalent pragma name Description
-+ (plus sign) (C++ only) None.

Compiles any file as a C++ language file.

-qcinc (C++ only) None.

Places an extern "C" { } wrapper around the contents of include files located in a specified directory.

-I None.

Adds a directory to the search path for include files.

-qidirfirst #pragma options idirfirst

Searches for user included files in directories that are specified by the -I option before searching any other directories.

-qinclude None.

Specifies additional header files to be included in a compilation unit, as though the files were named in an #include statement in the source file.

-qsourcetype None.

Instructs the compiler to treat all recognized source files as a specified source type, regardless of the actual file name suffix.

-qstdinc #pragma options stdinc

Specifies whether the standard include directories are included in the search paths for system and user header files.



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