[Lemon-user] Compiling "lp_demo.cc"
Kovács Péter
kpeter at inf.elte.hu
Tue Aug 10 21:49:11 CEST 2010
Dear Andrea,
For using the LP tools of LEMON you also need an LP solver. In your
current LEMON installation, GLPK is selected as the default solver. To
compile lp_demo.cc, you should have this library installed on your
system and you should add the -lglpk directive to gcc:
g++ -o lp_demo lp_demo.cc -lemon -lglpk
Regards,
Peter
2010.08.10. 21:39 keltezéssel, Andrea Parri írta:
> When I try to compile "lp_demo.cc" (with "g++ -o lp_demo lp_demo.cc -lemon)
> I get a long list of messages which all look like:
>
> "/usr/local/lib/libemon.a(lemon_libemon_la-glpk.o): In function
> 'lemon::GlpkBase:
> :_setObjCoeff(int, double)':
> /home/andrea/Downloads/lemon-1.2/lemon/glpk.cc:526: undefined
> reference to 'glp_
> set_obj_coef'.
>
>
>
> My File Browser presently looks as follows:
>
> usr/local/
> bin/
> glpsol, lemon-0.x-to-1.x.sh, lgf-gen, dimacs files
> include/
> lemon/
> bits/
> .h files
> concepts/
> .h files
> others .h files
> glpk.h
> lib/
> libemon.a, libemon.la, libglpk.a, libglpk.la, libglpk.so,
> libglpk.so0, libglpk.so.0.29.0
>
>
> Thank you for your help.
> Andrea
>
>
>
> ----------------------------------------------------------------
> SISSA Webmail https://webmail.sissa.it/
> Powered by Horde http://www.horde.org/
>
>
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
More information about the Lemon-user
mailing list