CPLEX C and C++ examples with dynamic libraries
Describes CPLEX C and C++ examples with dynamic libraries on non-Windows platforms.
The makefiles shipped with CPLEX for the C and C++ examples are written so that you can link the examples either with the static or the dynamic library (if the latter is available for your platform). By default, the makefiles link statically with the CPLEX library. See also Testing your installation on UNIX.
To build an individual example or run and execute all the examples:
make mipex1
make blend
make execute_c
make execute_cpp
To create binaries that link with the CPLEX dynamic library:
make dynamic=yes mipex1
make dynamic=yes blend
Similarly, to execute the examples with dynamically linked libraries:
make dynamic=yes execute_c
make dynamic=yes execute_cpp
Remember that you may have to delete the example binaries if you first linked with them
statically. Otherwise they will look up-to-date for make and the tool will not
rebuild them.