Compiling and Linking Callable Library Applications
Each Callable Library is distributed as a single library file libcplex.a
or cplex81.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 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.