Using the C API

The most efficient way to call COBOL from C is to use the C application programming interface (API). This interface can be used by C developers to call COBOL functionality (programs, entry points, etc.) from their C program.

To use the C API, you need to do the following:

  1. Install and configure ACUCOBOL-GT runtime. On Windows systems, optionally install AcuBench® if the system is also used for COBOL development.
  2. Include "sub.h" and "acusetjmp.h" in any source files that use API calls.
  3. Install and configure your C compiler.