On Tue, Nov 26, 2002 at 12:35:20PM +0200, [EMAIL PROTECTED] wrote:

> 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 -Wall foo.c -o foo

(add -v to your compilation command)

> 2. How can I change it?

RTFM: gcc options -I, -idirafter, -iprefix, -isystem, -nostdinc, etc. 

You can find these in 'info gcc', 'Invoking gcc', 'preprocessor
options' and 'directory options'.


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

Reply via email to