[Top][All Lists]

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

Re: [Help-glpk] Compile error

From: Michael Hennebry
Subject: Re: [Help-glpk] Compile error
Date: Tue, 22 Jun 2004 15:19:40 -0500 (CDT)

On Tue, 22 Jun 2004, Federico Zenith wrote:

> I am trying to use the glpk libraries to implement an Octave (
> LP function. I tried to install glpk, but I ran in an unusual compile error.
> It seems that gcc does not find the math.h header file, which is indeed
> in /usr/include/. However, the configuring reports that the ANSI C header
> files are found. Moreover, if I use a very simple test program (prova.c,
> attached), and I try to compile with gcc, I get an error of the same sort; if
> I compile with g++, however, everything works...
> Does anyone know what's happening?

It's not a compile error.
It's a linker error.
The gcc C compiler is finding math.h just fine.
The gcc link step does not include the math library by default.

Mike   address@hidden
"Nothing says it like words if you know how to use them."
                    --  the Professional Organization of English Majors

reply via email to

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