help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Compile error


From: Federico Zenith
Subject: Re: [Help-glpk] Compile error
Date: Fri, 25 Jun 2004 13:41:28 +0200
User-agent: KMail/1.6.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alle 22:19, martedì 22 giugno 2004, hai scritto:
> On Tue, 22 Jun 2004, Federico Zenith wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > I am trying to use the glpk libraries to implement an Octave
> > (www.octave.org) 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?
> > -----END PGP SIGNATURE-----
>
> 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.

Ok, here comes a simple patch that solves this.
I have also corrected a minor issue in contrib/jni/c/Makefile.

Cheers,
- -Federico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA3A9tcbPv7l8OLpsRAoUJAKCEWBUyj0sSNdi1iDg3L52AktjQ2gCfRB1d
HBW8+EfaaJ8e8FjNJN19Dw8=
=qhhT
-----END PGP SIGNATURE-----

Attachment: glpk-4.2.patch
Description: Text Data


reply via email to

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