Use the following command to execute KAP as a standalone preprocessor:
cc/preprocess myprog.c kapc [kap_qualifier_string] myprog.i /cmp=myprog_cmp.c
After preprocessing your program, give
the C compiler and to the linker, as follows:
cc/optimize=(tune=host,level=4)/ANSI_ALIAS myprog_cmp.c link /threads_enable/EXECUTABLE=myprog.exe myprog_cmp.obj,SYS$COMMON:[SYSLIB]kio/lib, SYS$COMMON:[SYSLIB]kmp/lib
kapcto process a file, you must set the C compiler and linker qualifiers appropriately. For this reason, Digital recommends that you use
kccwhenever possible, as
kccautomatically sets the compiler and linker qualifiers correctly.