From c0bbab9710a815ea19012d0c8a0a407802e9fad6 Mon Sep 17 00:00:00 2001 From: Daniel Grund Date: Tue, 7 Jun 2005 13:43:06 +0000 Subject: [PATCH] Added HAVE_CPLEX --- ir/be/lpp_local.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ir/be/lpp_local.c b/ir/be/lpp_local.c index 93ae09187..23dc23467 100644 --- a/ir/be/lpp_local.c +++ b/ir/be/lpp_local.c @@ -17,9 +17,10 @@ #include "sp_matrix.h" #include "ilcplex/cplex.h" - +#undef HAVE_CPLEX #define LOGFILE stdout + static char cpx_cst_encoding[4] = {'?', 'E', 'L', 'G'}; static char cpx_var_encoding[4] = {'?', '?', 'C', 'B'}; @@ -184,9 +185,15 @@ void cpx_solve(cpx_t *cpx) { lpp->iterations = CPXgetmipitcnt(cpx->env, cpx->prob); } +#ifdef HAVE_CPLEX void lpp_solve_local(lpp_t *lpp) { cpx_t *cpx = new_cpx(lpp); cpx_construct(cpx); cpx_solve(cpx); free_cpx(cpx); } +#else +void lpp_solve_local(lpp_t *lpp) { + fprintf(stderr, "CPLEX not available!\n"); +} +#endif -- 2.20.1