Progress
External Program
Interfaces
Running the Sample Application On UNIX
To verify that your HLC application is installed correctly, run the sample application by completing the following steps:
- Run the
buildenv
script provided in the$DLC/probuild/eucapp
directory to set up your HLC environment and to set environment variables for the C compiler and linker.- Create a working directory, then go to it.
- Copy the example HLC files to your working directory, as follows:
NOTE: Before you develop your own applications, move
c
andbuildenv
to a directory that is in your path and movehlc.h
to your include file directory or your current working directory.- Enter testhlc on 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 that 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:
![]()
Figure 2–9 shows the
testhlc
script in UNIX.Figure 2–9: UNIX testhlc Script
![]()
These notes explain the blocks in Figure 2–9:
- Sets up your UNIX environment.
- Creates and starts an empty database.
- Compiles all the
.c
files necessary to run the sample application.NOTE: This link script is specific to the sample application. For your own application development, use the PROBUILD utility to automatically generate a tailored link script.- Links and loads the object files.
- Starts a Progress session and runs the
hldemo.p
procedure.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |