Run the Tank sample application on Unix
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
To verify HLC is installed correctly on Unix, run the Tank sample application.
To run the sample application on Unix:
- Log on as a system administrator.
- Set the environment variables for the
Ccompiler. - Copy the example HLC files to your working directory:
cp $DLC/oebuild/hlc/examples/* .Note: Before you develop your own applications, movecandbuild_prohlc.shto a directory that is in your path and movehlc.hto your include file directory or your current working directory. - Run the
testhlcscript in the command line.
The testhlc script creates an empty database, compiles the C source files
to create object files in your current directory, links your test HLC module, and runs a
small sample application.
After you run hltank.p, verify the results
you obtain are correct by comparing them with the following results, which list the input
values for radius, tlength, and depth, and the correct output for tavail:

The following code example is the testhlc script on Unix:
|
The following notes explain the blocks in the Unix testhlc script:
- Sets up your Unix environment.
- Creates and starts an empty database.
- Compiles all the
.cfiles necessary to run the sample application. - Links and loads the object files.
- Starts an OpenEdge session and runs the
hldemo.pprocedure.