help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Linker error while compiling with glpk.h


From: Michael Hennebry
Subject: Re: [Help-glpk] Linker error while compiling with glpk.h
Date: Tue, 10 Apr 2012 12:30:15 -0500 (CDT)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

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   address@hidden
"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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]