[Lemon-user] Problem by using Clpex in Lemon

Andreas Brack andreas.brack at rwth-aachen.de
Thu Jul 19 12:49:07 CEST 2012


Hello,

I am trying to write my Bechelorthesis using lemon with cplex, therefore I
have to use a Mip.

First I started using GLPK on my own PC, that worked fine. My professor
said, that it would be better to use Cplex on the PC's in the university.

Lemon should be installed with Cplex support, and I compiled my code with:

g++ -g -O2 -O3 -c Main.cpp -I/usr/local/lemon/lemon-1.2.3/include -lemon
> -I/usr/local/ilog/cplex/latest-version/include
> g++ -g -O2 -O3 -o Main Main.o -L/usr/local/lemon/lemon-1.2.3/lib -lemon
> -L/usr/local/ilog/cplex/latest-version/lib/x86-64_sles10_4.1/static_pic
> -lilocplex -lcplex
> -L/usr/local/ilog/concert/latest-version/lib/x86-64_sles10_4.1/static_pic
> -lconcert


The compiler works fine, but the Linker return some of these errors:

 undefined reference to `lemon::CplexMip::CplexMip()'


Does someone know what I did wrong? Did I forget some Linker libraries?
How can I test if Cplex is running inside of lemon (without root)?


I used Lemon 1.2.3, Cplex 124

relevant Includes:

> #include <lemon/cplex.h>


and not <lemon/lp.h>

Typedefs I made:

> typedef CplexMip Mip;
> typedef CplexMip Lp;



I hope that were all important informations.


Thank you

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20120719/1b29f78b/attachment.html>


More information about the Lemon-user mailing list