Precompiling the application

Before you can compile your application, you must precompile the Embedded SQL/C code, as follows:

cpre
     [-Ccompiler] 
     [-Ddatabase_name]
     [-Ffips_level]
     [-G[isql_file_name]] 
     [-H]
     [-Iinclude_path_name] 
     [-Jcharset_locale_name] 
     [-Ksyntax_level]
     [-L[listing_file_name]]
     [-Ninterface_file_name]
     [-Otarget_file_name] 
     [-Ppassword] 
     [-Sserver_name] 
     [-Ttag_id] 
     [-Uuser_id] 
     [-Vversion_number] 
     [-Zlanguage_locale_name]
     [@options_file]...
    [-a] [-b] [-c] [-d] [-e] [-f] [-h] [-l] [-m] [-p] [-r] [-s] [-u] [-v] [-w] [-x] [-y]
    filename[.ext]

NoteOptions can be flagged using either a slash (/) or a dash (-); therefore, cpre /l and cpre -l are equivalent.

If you enter an invalid option, the precompiler lists the options that are available.

You must enter program, the name of the Embedded SQL/C source file. The default extension for program is .cp. The cpre statement generates an output file with a .c extension.

Some of the options are switches that activate features of the precompiler, such as generating stored procedures. By default, these features are turned off. To turn them on, include the option on the cpre statement line. Other statement qualifiers specify values for the preprocessor—a password, for example. Enter the value after the option (with or without intervening spaces).

Refer to Appendix B, “Precompiler Reference,” for a detailed description of the cpre options.