[Lemon-user] Enabling GLPK library after LEMON had been installed
Kovács Péter
kpeter at inf.elte.hu
Tue Aug 2 09:15:39 CEST 2011
Hi,
> Hello,
>
> > However, you may try to modfiy this include file manually by adding
> these three lines:
>
> > #define LEMON_HAVE_LP 1
> > #define LEMON_HAVE_MIP 1
> > #define LEMON_HAVE_GLPK 1
>
> > I think it will enable GLPK in LEMON correctly, but I'm not entirely
> sure.
>
> I did it and I get the following error messages :
>
> /tmp/ccUBRCZm.o: In function `main':
> mip_demo.cc:(.text+0x20): undefined reference to `lemon::GlpkMip::GlpkMip()'
> /tmp/ccUBRCZm.o: In function `lemon::GlpkMip::~GlpkMip()':
> mip_demo.cc:(.text._ZN5lemon7GlpkMipD1Ev[lemon::GlpkMip::~GlpkMip()]+0x23):
> undefined reference to `vtable for lemon::GlpkMip'
> mip_demo.cc:(.text._ZN5lemon7GlpkMipD1Ev[lemon::GlpkMip::~GlpkMip()]+0x37):
> undefined reference to `vtable for lemon::GlpkMip'
> ....
>
> > Reinstalling LEMON surely solves the problem.
>
> How can I properly reinstall LEMON ? (I'm a newbie indeed :])
Have you tried to follow these steps?
http://lemon.cs.elte.hu/trac/lemon/wiki/InstallAutotool#InstallfromSource
The ./configure command will show a summary of configuration options
(they are automatically detected). This summary should contain the
following line if you have GLPK properly installed:
GLPK support.................. : yes
If you have this line in the summary, finish the installation by 'make'
and 'make install'.
Regards,
Peter
More information about the Lemon-user
mailing list