ixlc Command and Options Syntax

Basic syntax for the ixlc command is:

Read syntax diagramSkip visual syntax diagram>>-ixlc--+-----+--+-----+--+-----+--+------------+--+------------+-->
         '- -?-'  '- -c-'  '- -+-'  '- -prtmsgid-'  '-pgm_source-'
 
   .-------------------.
   V                   |
>----+---------------+-+--+-----------------------+------------><
     '-compiler_opts-'    '- -B--"--binder_cmd--"-'
 

where:

ixlc
Basic compiler command invocation. By default, the ixlc command instructs the compiler to create a bound program.
-?
Specifying this flag displays help for the ixlc command.
-c
Specifying this flag instructs the compiler to create a module.
-+
Specifying this flag invokes the C++ compiler.
Start of change-prtmsgidEnd of change
Start of changeSpecifying this flag causes additional information on compiler error messages to be displayed. The additional information includes the line number, column number, message identifier, and message severity.End of change
pgm_source
Specifies the name of the program source file being compiled. You can compile an IFS source program or data management source program by providing the source name as:
 qsys.lib/.../name.mbr
Alternately, you can also compile a data management source program by using the -qsrcfile(library/file) and -qsrcmbr(member) Qshell compiler options to identify the location of the program source.
compiler_opts
Specifies the ixlc name of an ILE C/C++ compiler option.
-B"binder_cmd"
Specifies a binder command and options. For example:
    -B"CRTPGM PGM(library/target) MODULE(...)"

Notes on Usage

  1. ixlc commands and options are case sensitive.
  2. It is possible to specify conflicting options when invoking the compiler. If this occurs, options specified later on the command line will override options specified earlier. For example, invoking the compiler by specifying :
        ixlc hello.c -qgen -qnogen
    is equivalent to specifying:
        ixlc hello.c -qnogen
  3. Some option settings are cumulative, and can be specified more than once on the command line without cancelling out earlier specifications of that same option. These options include:


[ Top of Page | Previous Page | Next Page | Contents | Index ]