limits.h, PATH_MAX
Mike Frysinger
vapier@gentoo.org
Wed May 3 02:53:00 GMT 2006
On Monday 01 May 2006 09:21, Ingo Struck wrote:
> > -static hello.c -o powerpc-750-linux-gnu-hello-static
> > hello.c: In function `main':
> > hello.c:4: error: `PATH_MAX' undeclared (first use in this function)
> > hello.c:4: error: (Each undeclared identifier is reported only once
> > hello.c:4: error: for each function it appears in.)
>
> I have had the same issue, and imo it is hello.c
> which is incorrect. Rejecting it is correct behaviour.
you missed the entire point of the test
if the gcc internal headers were generated correctly, then including limits.h
will eventually pull in linux/limits.h and thus define PATH_MAX
if the gcc internal headers were generated incorrectly (which is quite
common), then this simple test will fail
-mike
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list