ILE C/C++ Programmer's Guide


Creating a Binder Language Source File

Binder language is based on the exports available from modules that are bound into service programs. A binder language source file must contain the following entries:

The following figure shows the structure of a binder language source file:

Figure 11. Example of a Binder Language Source File



STRPGEXP PGMLEVEL(*CURRENT)
EXPORT SYMBOL("mangled_procedure_name_a")
EXPORT SYMBOL("mangled_procedure_name_b")
...
...
EXPORT SYMBOL("mangled_procedure_name_x")
ENDPGMEXP
Note:
You must specify the mangled name of each symbol on the EXPORT command, because the binder looks for the mangled names of exports when it tries to resolve import requests from other modules.

After all the modules to be bound into a service program have been created, you can create the binder language source file by using either of the following methods:


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