ILE C/C++ Programmer's Guide

Compiling a Program

Issue a compile command against your source, and fix any compile errors that arise. You can see the errors either as messages in the job log or in the listing (if you chose to create one).

The ILE C/C++ compiler includes the following compile commands:

Compile Command Use Description
CRTCMOD Create C Module The Create Module command creates a module object. If your program will include objects from more than one source file, you must use the Create Module command for each source file, and then run CRTPGM specifying all the required *MODULEs to create the bound program.
CRTCPPMOD Create C++ Module
CRTBNDC Create Bound C Program The Create Bound Program command performs both the module creation and the binding operation in one step, and produces a *PGM object from a single source file.
CRTBNDCPP Create Bound C++ Program
Note: The compile command might also originate in a CL program or makefile.

See WebSphere Development Studio: ILE C/C++ Compiler Reference for more information about the Create Module and Create Bound Program commands and their options.

Note: In the following pages:

  1. CRTCMOD and/or CRTCPPMOD may be referred to as simply the "Create Module" command.
  2. CRTBNDC and/or CRTBNDCPP may be referred to as simply the "Create Bound Program" command.
  3. Examples may show the use of either of the C or C++ versions of the Create Module and Create Bound Program commands. Unless specifically stated otherwise, both C and C++ versions of these commands function in the same way and can be used interchangeably, according to the language of the source program being compiled.


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