#: 19493 S12/OS9/68000 (OSK)
17-Dec-93 22:56:40
Sb: #19490-#GNU C
Fm: John R. Wainwright 72517,676
To: Zack Sessions 71532,1555 (X)
> I am having a problem getting GNU C to work. Anytime I compile a program
which
> includes stdio.h, it tells me that there is an unterminated string or
character
> constant on line 326 of stdio.h. It is the unaltered header file which came
in
> the defs archive. I have searched through it around line 326 and cannot find
a
> problem. What's wrong here?
>
> I copied all of the header files into /dd/defs and the ones in the SYS
> directory to /dd/defs/sys. Is that right? And I have removed all of the
header
> files from the MW C compiler. Is that right?
>
Hmmmm, the "stdio.h" that I have in /dd/defs/ is the same one that came with
the MW compiler (78 lines long) - and I use it with GCC. I did add a #ifndef
_STDIOH_, #define _STDIOH_ ((original file)) #endif ("don't call it twice") .
There is ANOTHER "stdio.h" in "/dd/defs/CC/, and right at line 326 it has one
of those C++ comment lines starting with "//" instead of "/*". That C++ comment
line right at the place you describe is too much of a coincidence -- gotta be
the problem.
The /dd/defs/CC directory was created by the archive when I got the first
version of GCC and GPP. I THINK (?) it only gets used by the gpp C++ compiler.
There is an option "-+" in the cccp pre-processor to handle those funny
comments.
John R. Wainwright
> >
*********** InfoXpress ************
There is 1 Reply.
|