On Tue, 2002-11-26 at 12:35, [EMAIL PROTECTED] wrote: > Small Q: > I'm using a stock RH7.2 with the gcc-2.96 that comes with it. > > My code needs errno.h (the one in /usr/include). > After I include it, stuff goes awry. The 'errno' symbol is not defined and > compilation fails. > If I copy /usr/include/errno.h to my projects directory and include it > directly, it works fine. > > 1. How can I see in which directories the system will look for a header > #included with <> ? (and in which order)?
gcc -v filename.c > 2. How can I change it? Add -I dir to the gcc command line. But you shouldn't copy errno.h anywhere. What exactly are the problems you're getting? -- Alex Shnitman <[EMAIL PROTECTED]> http://www.hectic.net/ UIN 188956 PGP 0xEC5D619D / E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]