Building CPLEX Callable Library Applications on UNIX Platforms
To compile and execute an example (lpex1) do the following:
A list of all the examples that can be built this way is to be found in the makefile by looking for C_EX (C examples), or you can view the files listed in examples/src.
The makefile contains recommended compiler flags and other settings for your particular computer, which you can find by searching in it for "Compiler options" and use in your applications that call CPLEX.