Article View: gnu.gcc.bug
Article #6239include_next problem with gcc 2.7.2, Linux 1.3, libc-5.2.16
From: Scott Hassan
Date: Thu, 21 Dec 1995 00:00
Date: Thu, 21 Dec 1995 00:00
42 lines
1429 bytes
1429 bytes
I am using gcc 2.7.2 and libc-5.2.16 on a Linux 1.3.45 box.
If I try to compile this piece of code:
#include <limits.h>
main()
{
printf("%d\n", INT_MAX);
}
with this command:
gcc -I/usr/include -I/usr/include test.c
I receive:
test.c: In function `main':
test.c:4: `INT_MAX' undeclared (first use this function)
test.c:4: (Each undeclared identifier is reported only once
test.c:4: for each function it appears in.)
If I use this command:
gcc -I/usr/include test.c
It builds perfectly.
What up?
I believe it has something to do with the include_next statement in the limits.h file.
Thanks,
Scott Hassan
--
------------------------------------------------------------------------------
Scott W. Hassan "The trees know something
hassan@cs.stanford.edu in their boughs and the
<http://www-db.stanford.edu/~hassan> cats in their prance."
Technical Details
Message-ID:
<30D9C707.72C6@cs.stanford.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,e34bbaa493b82ebb,start X-Google-Attributes: gid113d02,public From: hassan@cs.stanford.edu (Scott Hassan) Subject: include_next problem with gcc 2.7.2, Linux 1.3, libc-5.2.16 Date: 1995/12/21 Message-ID: <30D9C707.72C6@cs.stanford.edu> X-Deja-AN: 122498329 distribution: gnu sender: daemon@cis.ohio-state.edu organization: Stanford University newsgroups: gnu.gcc.bug