


The ADABAS C/C++ precompiler can be called in two ways:
The call started from the command line of the Windows Program Manager is:

Double-clicking the icon C/C++ Precompiler in the ADABAS program group or calling 'cpcdrv -h' activates an overview of the precompiler options.
Alternatively, the precompiler can also be started in an MS-DOS session (e.g., in batch mode or using nmake) by calling the batch file CPC.BAT. To be able to do so, the program WXServer from the Microsoft Software Development Kit (SDK) must have been started. In this case, the start command is formatted as follows:

The name of the source code file must be <fn>.cpc.
Note: If the precompiler is started from a DOS batch file, use the DOS command CALL, because a batch file is concerned.
C/C++ precompiler options:

For an explanation of the individual preocmpiler options, see the ADABAS manual
C/C++ Precompiler.
Compiler option: see C compiler.
Set is: /c /AL /G2
The option -b has the effect that the program will be translated without any interruption, otherwise the precompiler window remains on the screen. Only after closing this window, the C compiler will be started. After compilation has ended, the compiler window remains on the screen as well. As soon as this window has been closed, the window of the precompiler shell appears. Only closing this window terminates the compiling procedure.
Sample start: cpc -u demo,dpwd -b -H nocheck hblc
Additional connect data is fetched for the corresponding session from the connect command specified in the program and/or from the SQL-DB.INI file. If no SQL-DB.INI file is available, all connect data must be specified using the precompiler options. These options are only valid for session 1.


