Previous Topic

Next Topic

Developing an Embedded SQL Application

The ESQL precompiler, esqlc, translates SQL statements embedded in a C host program and generates a pure C program. The C program generated by the ESQL precompiler is used to build the application program executable.

The general steps involved in building an ESQL program executable are as follows:

  • Write ESQL source-code files.
  • Use the ESQL precompiler, esqlc, to precompile ESQL files and generate corresponding C source files.
  • Use a standard C compiler to generate object files from the C source files.
  • Link the object files the ESQL libraries to generate an executable application.

See “Using the esqlc Command” for more details on invoking and using esqlc.