OSI/MHS P7 Application Programmatic Interface (P7 API) Manual

Planning and Writing Your Application
OSI/MHS P7 Application Programmatic Interface (P7 API) Manual424825-001
2-12
Creating an Executable Program
The filename for the P7 API object file is P7PILIB. The names for the C and TAL
declarations files are P7PIEXTH and P7PIEXT, respectively.
To include the declaration files in the client application, use the C preprocessor directive
#include for C language programs or the ?SOURCE directive for TAL language
programs. These directives copy the contents of the declaration file into the client
application.
To bind the P7 API object file into the client application and create an executable
program, use one of the following methods:
If you want to use the compiler command line to create an executable application,
use the C compiler pragmas SEARCH and RUNNABLE. SEARCH binds the P7
object file into the client application program, and RUNNABLE creates the
executable application.
If you want to use the Binder to create an executable application, use the Binder
SELECT SEARCH command to bind the P7 object file into the client application
program. The Binder program produces executable object files.
To treat the P7 API object file as a user library file, use one of the following methods:
The Binder SET LIBRARY command
The LIB option of the TACL RUN command
For more information on C preprocessor directives and compiler pragmas, see the C
Reference Manual. For more information on Binder commands, see the BINDER
Manual. For more information on the TACL command, see the TACL Programmers
Guide.
Note. Your final application can have only one user library file. Therefore, if you choose to
treat the file as a user library file, you cannot include another user library file in the final
application.