bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] compiling glpk with -D_GNU_SOURCE


From: Sami Farin
Subject: [Bug-glpk] compiling glpk with -D_GNU_SOURCE
Date: Tue, 9 Oct 2001 03:02:03 +0300
User-agent: Mutt/1.3.22.1i

hi.

this is what I get:

gcc -c -O2 -pipe -D_GNU_SOURCE -D__USE_STRING_INLINES -fstrength-reduce
  -march=pentiumpro -O2 -pipe -fstrength-reduce -march=pentiumpro 
  -I include glplp/prepro_lp.c -o glplp/prepro_lp.o
glplp/prepro_lp.c:72: `fmin' redeclared as different kind of symbol
/usr/include/bits/mathcalls.h:319: previous declaration of `fmin'
glplp/prepro_lp.c:72: warning: `fmin' was declared `extern' and later `static'
glplp/prepro_lp.c:76: `fmax' redeclared as different kind of symbol
/usr/include/bits/mathcalls.h:316: previous declaration of `fmax'
glplp/prepro_lp.c:76: warning: `fmax' was declared `extern' and later `static'
make: *** [glplp/prepro_lp.o] Error 1

I have glibc-2.2.4. glpk compiles OK if I don't define _GNU_SOURCE.

C99 definition of function fmax:
"The fmax functions return the maximum numeric value of their arguments."

-- 
Safari - address@hidden - PGP key 0x427E7914 - http://www.iki.fi/safari/
  The UNIX Guru's View of Sex: "unzip ; strip ; touch ; finger ; \
  mount ; fsck ; more ; yes ; umount ; sleep"



reply via email to

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