[Lemon-user] a problem when running lemon

Liyin Tang liyintan at usc.edu
Tue Aug 10 01:04:56 CEST 2010


Hi
I tried to use lemon to solve the min cost max flow problem.
I installed glpk successfully, the lib files are under: /usr/local/lib/
And I also can run the hello_lemon.cc( http://lemon.cs.elte.hu/pub/tutorial/sec_hello_lemon.html)
But when I try to run another demon file: demo/lp_maxflow_demo.cc (  http://lemon.cs.elte.hu/pub/tutorial/a00003.html)
I run the file by the command: g++ -o test lp_maxflow_demon.cc -lemon
There are lots of compiler errors,  which shows lemon cannot find the reference in thes glpk.cc
for example: 
lemon/lemon-1.2/lemon/glpk.cc:169: undefined reference to `glp_get_mat_row'
lemon/lemon-1.2/lemon/glpk.cc:907: undefined reference to `glp_set_col_kind'
lemon/lemon-1.2/lemon/glpk.cc:907: undefined reference to `glp_set_col_kind'

How can I solve this problem?
Really appreciate your reply

Thanks a lot 
Best Regards
Liyin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20100809/c10ed1ce/attachment.html>


More information about the Lemon-user mailing list