Problem with <math.h> and -D_GNU_SOURCE and GCC 2.95.1
George T. Talbot
george@moberg.com
Mon Aug 23 15:45:00 GMT 1999
If I compile a C program with -D_GNU_SOURCE, and I include <math.h>,
which I'm doing so I can get to some extra features, such as the NAN
#define, I get the following compilation error:
gcc -g -c -Wall -ansi -pedantic -O2 -DNDEBUG -I.
-I/usr/local/MRIMonitor/include -I/usr/local/libmrc/include
-I../../../nsp/include -I../so_framework -D_GNU_SOURCE -D_REENTRANT
-DPLATFORM_LINUX=1 -DEXPORT= -fno-implicit-templates dnf.c -o dnf.ot
In file included from /usr/include/math.h:348,
from dnf.h:33,
from dnf.c:21:
/usr/include/bits/mathinline.h: In function `__signbitf':
/usr/include/bits/mathinline.h:117: warning: ANSI C forbids specifying
structure member to initialize
/usr/include/bits/mathinline.h:117: initializer element is not
computable at load time
/usr/include/bits/mathinline.h:117: (near initialization for `__u.__f')
/usr/include/bits/mathinline.h: In function `__signbit':
/usr/include/bits/mathinline.h:122: warning: ANSI C forbids specifying
structure member to initialize
/usr/include/bits/mathinline.h:122: initializer element is not
computable at load time
/usr/include/bits/mathinline.h:122: (near initialization for `__u.__d')
/usr/include/bits/mathinline.h: In function `__signbitl':
/usr/include/bits/mathinline.h:127: warning: ANSI C forbids specifying
structure member to initialize
/usr/include/bits/mathinline.h:127: initializer element is not
computable at load time
/usr/include/bits/mathinline.h:127: (near initialization for `__u.__l')
make: *** [dnf.ot] Error 1
Any ideas?
--
George T. Talbot
<george@moberg.com>
More information about the Libc-alpha
mailing list