Building C sample programs

Each sample program is in a subdirectory of the <install_path>/samples/c directory.

The software that is supported for developing C applications is listed in Development environments.

On Windows, the sample programs can be built using the supplied command files. For example, to build the basic ECI sample ecib1.c, go to the eci subdirectory and process the ecib1mak.cmd file. All C samples can be built by changing to the <install path>/samples/c directory and processing the sampmak.cmd file.

On UNIX and Linux, you can build all the C sample programs, by changing the directory to the <install_path>/samples/c directory and running the sample make file, samp.mak. The make file <install_path>/samples/c/samp.mak is a parent make file that invokes the sample make files in each of the subdirectories. The executable files are created in the subdirectories. To process the make file, issue the following command:
make -f samp.mak

Linux on POWER® supports the use of IBM® XL C and GNU C. To compile the C sample programs using the IBM XL C compiler, use the command.

make -f samp.mak COMPILER=XL

Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/CAPIAndUserExitSamples.html