After you write your C functions and modify the hlprodsp.c file to include the C function references, you build your HLC library (prohlc.dll for Windows and libprohlc.so for Unix).

The following diagram illustrates the steps required to build an HLC library:

Figure 1. Steps to build an HLC library


To build prohlc.dll or libprohlc.so, perform the following steps:

  1. Set environment variables for the C complier on Windows or Unix.
  2. Compile your local copy of hlprodsp.c and the source files that contain your C functions.
  3. Edit your copy of the build_prohlc.link\build_prohlc.sh script to include the object files (.obj or .o) generated in Step 2.
    Note: Ensure that the Object files shipped with OpenEdge are present in the build_prohlc.link\build_prohlc.sh script.
  4. Run the build_prohlc.link\build_prohlc.sh script to build the HLC library (prohlc.dll or libprohlc.so).

    On Windows

    link @build_prohlc.link

    On Unix

    sh build_prohlc.sh
  5. Set the new environment variable PROHLC to the full path of the newly built HLC library (prohlc.dll or libprohlc.so) including the library name.

    On Windows

    set PROHLC=<full_path_of_prohlc.dll>

    On Unix

    export PROHLC=<full_path_of_libprohlc.so>