delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/30/05:52:54

Message-Id: <199909300744.KAA06284@ankara.Foo.COM>
From: "S. M. Halloran" <mitch AT duzen DOT com DOT tr>
Organization: User RFC 822- and 1123-compliant
To: djgpp AT delorie DOT com
Date: Thu, 30 Sep 1999 11:50:18 +0200
MIME-Version: 1.0
Subject: Re: The Include paths
In-reply-to: <vkDI3.374$J83.35119@typhoon-la.pbi.net>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

In your makefile, or in the command line you might compose yourself to gcc at 
the very least, you can use or arrange for the '-I' option to specify 
separately all include paths that are outside the standard one.

So if you have headers in 'c:\myprojects\include' where you might keep your own 
custom headers commonly used for multiple projects you have, your makefile or 
you should see a command line:

   gcc -Ic:\myprojects\include ...

and then you won't see the 'header file not found' error message.  If you use 
the pre-processor (cpp.exe) by itself, it also requires that flag and format.

The standard include path is included implicitly, so you shouldn't need to 
specify it.

'info gcc' should be authoritative information for you as to what all you can 
do with the options to gcc in djgpp.

On 29 Sep 99, AndrewTek was found to have commented thusly:

> Hi All,
> 
> I was wondering how I would go about modifying my Include path in DJGPP. I
> need to include some "special" folders but I don't want to copy their
> contents into the main include folder... is there a way to modify the paths
> that DJGPP looks in so that it can find these header files?
> 
> Thanks for the help
> 
> Andrew


Mitch Halloran
Research (Bio)chemist
Duzen Laboratories Group
Ankara       TURKEY

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019