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: Andrew Makhorin
Subject: Re: [Help-glpk] Linker error while compiling with glpk.h
Date: Tue, 10 Apr 2012 17:41:42 +0400

> > 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.




reply via email to

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