Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Arthur David Olson
Tue, 27 Sep 1988 22:56
Gnu C compiler's stddef.h and stdio.h don't mix (with fix)
Author: Arthur David Olson
Date: Tue, 27 Sep 1988 22:56
Date: Tue, 27 Sep 1988 22:56
30 lines
1432 bytes
1432 bytes
(We're running SunOS 4.0 on a Sun 3/110.) Description: If you include Gnu's "stddef.h" file and Sun's "stdio.h" file, you get a warning. Repeat-By: Script started on Tue Sep 27 17:04:28 1988 daisy$ cat try.c #include <stdio.h> #include <stddef.h> daisy$ /usr/local/gcc -S -v try.c gcc version 1.28 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dmc68000 -Dsun -Dunix -Dmc68020 -D__HAVE_FPU__-Dmc68020 try.c /tmp/cca07602.cpp GNU CPP version 1.28 >>>> /usr/local/lib/gcc-include/stddef.h:14: warning: NULL redefined /usr/local/lib/gcc-cc1 /tmp/cca07602.cpp -quiet -dumpbase try.c -version -o try.s GNU C version 1.28 (68k, MIT syntax) compiled by GNU C version 1.28. daisy$ exit script done on Tue Sep 27 17:04:49 1988 Fix: Add a "/usr/local/lib/gcc-include/stdio.h" with contents along these lines: #include "/usr/include/stdio.h" #undef NULL #define NULL ((void *)0) -- ado@ncifcrf.gov ADO is a trademark of Ampex.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads