Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Host Language Call Interface : Building an HLC executable
 

Building an HLC executable

After designing the CALL statements, supporting C functions, and the PRODSP() dispatch routine for your application, you can build an HLC executable.
To build an HLC executable:
1. On UNIX operating systems, set up your environment using the ABL BUILDENV utility. This command sets the search paths and options required with your compiler and linker to build ABL executables.
2. Compile your copy of the hlprodsp.c source file that contains the HLC dispatch routine and the source files that contain your C functions. For more information, see CompilingC source files.
3. Use the OEBuild utility to generate a link script for your executable. The OEBuild utility allows you to do the following:
*Select the OpenEdge product and configurable elements (including HLC) that you want to build into your executable.
*Enter the filenames of your object files and hlprodsp.o in the dialog box that OEBuild displays. The OEBuild utility inserts the filenames in the link script it generates.
4. Link your executable with the link script that OEBuild generates. This step produces your HLC executable.
For more information on building OpenEdge executables, see the appendix on building executables in OpenEdge Deployment: Managing ABL Applications.