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:

  1. 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.
  2. Create a working directory, then go to it.
  3. Copy the example HLC files to your working directory, as follows:
  4. cp $DLC/probuild/hlc/examples/* . 
    

    NOTE: Before you develop your own applications, move c and buildenv to a directory that is in your path and move hlc.h to your include file directory or your current working directory.

  5. 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:

  1. Sets up your UNIX environment.
  2. Creates and starts an empty database.
  3. Compiles all the .c files necessary to run the sample application.
  4. Links and loads the object files.
  5. 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.

  6. 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