ILE C/C++ Programmer's Guide


Using the ILE TEMPINC Option

Use the ILE TEMPINC option when the code has already been structured for it.

To use the ILE TEMPINC option:

  1. List your templates in one or more header files but do not define any arguments for them.
  2. Include only the header files in your source code.
    Note:
    For each header file, you can use the #pragma implementation directive instead of a template implementation file to define templates.
  3. When you bind your modules, use the same compiler options that you used to compile them. For example:
    CRTPGM PGM (MYLIB/MYPROG) MODULE(MYLIB/MYFILE)
    

    This is especially important for options that control libraries, linkage, and code compatibility.


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