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


Ingo:


+ /opt/crosstool/gcc-3.3.3-glibc-2.3.2/powerpc-750-linux-gnu/bin/powerpc-750-linux-gnu-gcc


-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.



The whole point of testing with PATH_MAX is to verify that Linux headers are installed. You don't get much of a runtime library development experience without them.


Shouldn't glibc already be including the missing header file somewhere internally? Apparently it isn't. If that's appropriate, then adding the #include to hello.c is the right thing to do.


b.g.


--
Bill Gatliff
bgat@billgatliff.com


-- 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]