Mail Archives: djgpp/1996/09/06/20:48:42
Alf Stockton wrote:
>
> I want gcc, or rather the preprocessor, to find my #include files in a
> subdirectory other than the normal setup in DJGPP.ENV and so I altered the
> C_INCLUDE_PATH line in DJGPP.ENV to the following :-
> C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/incl
> ude;d:\dev\gcc\panelp.213\include
> but for some reason cpp cannot locate files in d:\dev\gcc\panelp.213\include.
>
> What have I done wrong ?
Use forward slashes, like the rest of the directories in the C_INCLUDE_PATH.
Either that or escape your backslashes by using '\\' in place of '\'. A
single '\' is the escape character under Unix and C. There should be no
problem with drive specifiers; if there are, please repost. If you do so,
be sure to include the output of gcc when invoked with the -v command.
Do this like so:
redir -o gcc.out -eo gcc -v [...]
Include the resulting gcc.out file with your post, as well as the entire
contents of your DJGPP.ENV.
Hope this helps!
John <fighteer AT cs DOT com>
--
Anything that happens, happens.
Anything that, in happening, causes something else to happen, causes
something else to happen.
Anything that, in happening, causes itself to happen again, happens again.
It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
- Raw text -