2.4 Compiling and Linking

For compiling your files using ABACUS add the abacus/include directory either to your include directory path or specify it explicitly with the -I compiler option. Furthermore, add the include file paths of the LP-solvers you want to use. The flag for the C++ compiler can be defined at compilation time using the -D switch of the compiler (e.g., -DABACUS_COMPILER_GCC41) or specified in the Makefile. See table  2.1 for valid settings. It might be helpful to consult the Makefile of the example included in the ABACUS distribution.




compiler preprocessor flags


Linux g++ 4.1 ABACUS_COMPILER_GCC41 or ABACUS_COMPILER_GCC
Linux g++ 3.4 ABACUS_COMPILER_GCC34
Linux g++ 3.3 ABACUS_COMPILER_GCC33
SUN C++ 4.2 ABACUS_COMPILER_SUN



Table 2.1: compilers