ILOG CPLEX 11.0 Getting Started > Tutorials > Callable Library Tutorial > Compiling and Linking Callable Library Applications > Building Callable Library Applications on UNIX Platforms

To compile and execute an example (lpex1) do the following:

  % cd examples/platform/format
  % make lpex1     #  to compile and execute the first CPLEX example

In that command, platform indicates the name of the subdirectory corresponding to your type of machine, and format indicates your particular library format, such as static, multi-threaded, and so forth.

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 ILOG CPLEX.