Build an HLC library
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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:

To build prohlc.dll or libprohlc.so, perform the following steps:
- Set environment variables for the C complier on Windows or Unix.
- Compile your local copy of
hlprodsp.cand the source files that contain yourCfunctions. - Edit your copy of the
build_prohlc.link\build_prohlc.shscript to include the object files (.objor.o) generated in Step 2.Note: Ensure that the Object files shipped with OpenEdge are present in thebuild_prohlc.link\build_prohlc.shscript. - Run the
build_prohlc.link\build_prohlc.shscript to build the HLC library (prohlc.dllorlibprohlc.so).On Windows
link @build_prohlc.linkOn Unix
sh build_prohlc.sh - Set the new environment variable
PROHLCto the full path of the newly built HLC library (prohlc.dllorlibprohlc.so) including the library name.On Windows
set PROHLC=<full_path_of_prohlc.dll>On Unix
export PROHLC=<full_path_of_libprohlc.so>