help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Problem in compiling c programs with glpk functions


From: Andrew Makhorin
Subject: Re: [Help-glpk] Problem in compiling c programs with glpk functions
Date: Thu, 5 Oct 2006 05:18:36 +0400

> Maybe it's a primitive doubt, but I don't know someone else whose is
> able to help me.
> I had the following problem whem trying to compile (with gcc) the file
> sample.c, which is distributed with the package:
> 
> darklady:/usr/share/doc/glpk/examples# gcc -o sample.run sample.c
> /tmp/ccoTzCky.o: In function `main':
> sample.c:(.text+0x15): undefined reference to `glp_lpx_create_prob'

gcc ... -lglpk

Note that -lglpk works only if glpk is installed; if not, specify
libglpk.a explicitly. In any case you need to compile glpk before.





reply via email to

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