On Tue, 10 Apr 2012, Andrew Makhorin wrote:
Probably you forgot to specify the glpk object library for the
linker,
i.e. 'gcc ... -lglpk ...' .
I've a #include <glpk.h> and i'm compiling with -lglpk
This error is not related to glpk; it is a linker error meaning that
the glpk object library is not available to the linker. Try to build
glpk from its source distribution, i.e. run 'configure', 'make', and
'make check'. If the check is successfull, install the package with
'make install'. Then compile your program--all should work.
First I'd try locate libglpk .
He might just need to insert a -L/here/it/is .
One of my annoyances with the gnu linker (don't know about others) is that
a missing library is not considered an error even when the link fails.
--
Michael [email protected]
"On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword." -- Lily
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk