This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: limits.h, PATH_MAX


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]