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

Thanks. That's what I was looking for :-)

--
Miki Shapiro <[EMAIL PROTECTED]>
Coder - Unixophile - Boarder - Quake God
Aladdin Knowledge Systems
---------------------------------------------
Tel: +972-(4)-8811403  ICQ: 3EE853
---------------------------------------------
C++ | BSD | Burton | Tribes
Have board. Will ride.

On 11/26/2002 01:01:32 PM ZE2 Muli Ben-Yehuda wrote:
>
>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'.
>


******************************* IMPORTANT ! **********************************
The content of this email and any attachments are confidential and intended 
for the named recipient(s) only.

If you have received this email in error please notify the sender immediately.
Do not disclose the content of this message or make copies.

This email was scanned by eSafe Mail for viruses, vandals  and other
malicious content.
******************************************************************************


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