[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
RE: [Help-glpk] Cannot compile glpk.c on Redhat 7.2 but will compile onRedhat 9.
Wed, 12 May 2004 22:10:29 -0600
Does anyone know how I can modify the configure.in or Makefile.in file to
check the version of the gcc and java so that I can issue a warning when the
gcc or java version is not high enough?
From: Michael Hennebry [mailto:address@hidden
Sent: Wednesday, May 12, 2004 8:29 AM
To: Welson Sun
Subject: RE: [Help-glpk] Cannot compile glpk.c on Redhat 7.2 but will
compile onRedhat 9.
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.
"Nothing says it like words if you know how to use them."
-- the Professional Organization of English Majors