Mail Archives: djgpp/1998/06/09/20:16:01
From: | davidotoole AT my-dejanews DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Minor parse problem...
|
Date: | Tue, 09 Jun 1998 23:08:05 GMT
|
Organization: | Deja News - The Leader in Internet Discussion
|
Lines: | 23
|
Message-ID: | <6lkf8l$272$1@nnrp1.dejanews.com>
|
NNTP-Posting-Host: | 207.3.157.96
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello! I have a minor question... I recently installed GCC 2.81, and after
some minor startup hassles it worked fine. Then I tried to compile a C
program that included <dpmi.h> and <sys/movedata.h> because I needed
dosmemput() for accessing the VGA RAM. It never got to the link stage- I got
many *parse* errors in the *header file*, not in my .c file. The message
was, "(line#) Parse error before "size_t" in movedata.h" or something to that
effect. I examined the header file and found no obvious error. But while
looking I saw a note at the top of <movedata.h> that said something like,
"this should only be included from other header files like XXXX or XXXX, not
by itself." So I thought DPMI.H might include it itself, and it might be
doing something wrong if included more than once. So I commented out the
#include and left the one for dpmi.h alone. It worked fine; apparently dpmi
includes it already.
So the problem appears to be solved, but I'd like to know why it happened so I
can solve it if it happens again.
Thanks!
-dave
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
- Raw text -