ILOG CPLEX 11.0 Getting Started > Tutorials > Callable Library Tutorial > Compiling and Linking Callable Library Applications

Each Callable Library is distributed as a single library file libcplex.a or cplex110.lib. Use of the library file is similar to that with .o or .obj files. Simply substitute the library file in the link procedure. This procedure simplifies linking and ensures that the smallest possible executable is generated.

The following compilation and linking instructions assume that the example source programs and ILOG CPLEX Callable Library files are in the directories associated with a default installation of the software. If this is not true, additional compile and link flags would be required to point to the locations of the include file cplex.h, and Callable Library files respectively.

Note
The instructions below were current at the time of publication. As compilers, linkers and operating systems are released, different instructions may apply. Be sure to check the Release Notes that come with your ILOG CPLEX distribution for any changes. Also check the ILOG CPLEX web page (http://www.ilog.com/products/cplex).