Mail Archives: djgpp/1998/11/14/18:00:14
From: | dmcg6174 AT yahoo DOT com (Daniel McGrath)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Problem with nested #include's
|
Date: | Sat, 14 Nov 1998 23:46:02 GMT
|
Organization: | Long Island Information, Inc.
|
Lines: | 25
|
Message-ID: | <364e0e09.936581@news.liii.com>
|
NNTP-Posting-Host: | mcgrath.liii.com
|
X-Trace: | cedar.liii.com 911083716 1475 204.180.230.5 (14 Nov 1998 22:48:36 GMT)
|
X-Complaints-To: | news AT liii DOT com
|
NNTP-Posting-Date: | 14 Nov 1998 22:48:36 GMT
|
X-Newsreader: | Forte Free Agent 1.11/16.235
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
I am having this problem with my DJGPP C compiler (gcc-2721):
Suppose I have a source file foo.c, and in the file it says
#include "bar.h"
where bar.h is a header file. In this header file, bar.h, it says
#include "baz.h"
Now, when I run the preprocessor using "gcc" or "cpp", I will get an
error message like this:
In file included from foo.c:LINE_NUMBER:
bar.h:LINE_NUMBER: baz.h: No such file or directory (ENOENT)
I get this error message _even when the file baz.h actually does
exist_. I don't understand this. I tried reading the preprocessor
info file, and it has a section on this "nesting" of #include's but
nothing is mentioned about any problems you could have. Please help
me.
Advth'xance,
Daniel
- Raw text -