[Top][All Lists]

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

RE: [Help-glpk] Cannot compile glpk.c on Redhat 7.2 but will compile onR

From: Michael Hennebry
Subject: RE: [Help-glpk] Cannot compile glpk.c on Redhat 7.2 but will compile onRedhat 9.
Date: Wed, 12 May 2004 09:28:33 -0500 (CDT)

On Wed, 12 May 2004, Welson Sun wrote:

> Sorry, it is not the GLPK, it is the glpk.c in contrib/jni/c directory.

> Somebody reported this error when compiling glpk.c on Redhat 7.2:
> glpk.c: In function `_hook_fn':
> glpk.c:85: parse error before `cls'
> glpk.c:92: parse error before `callbackArg'
> glpk.c:96: parse error before `mID'
> glpk.c:99: `mID' undeclared (first use in this function)
> glpk.c:99: (Each undeclared identifier is reported only once
> glpk.c:99: for each function it appears in.)
> glpk.c:108: `callbackArg' undeclared (first use in this function)
> make: *** [glpk.o] Error 1
> I got the same error on Redhat 7.2, but the compilation is successful on a
> Redhat 9 box. We are using GLPK 4.3, any ideas?

gcc can be set to require that all functions be declared before use.
I think ANSI C requires this.
I don't have glpk.c in front of me,
so I can't be sure that that is the problem.

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]