This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "There is extra text on this line" error.
- To: Serge Kaing <skaing at titanic dot cme dot nist dot gov>
- Subject: Re: "There is extra text on this line" error.
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Tue, 29 Dec 1998 16:01:36 +0100 (MET)
- cc: egcs mailing list <egcs at cygnus dot com>
On Tue, 29 Dec 1998, Serge Kaing wrote:
> I've been trying to compile a C++ package that was built
> a few years ago, with Sun C++ compiler 4.2.
> The error I get, "There is extra text on this line", concerns
> the following line:
> "
> ifndef __DATA_STR.h //line 11, this is the line that the compiler doesn't
> like.
> #define __DATA_STR.h
> #include...
> ...
The dot (".") is not allowed in C++ identifiers. __DATA_STR.h is not a
valid identifier, and the trailing .h apparently causes that error.
I suggest you replace __DATA_STR.h by __DATA_STR_H or similiar (though
note that identifiers starting with __ are reserved for the compiler
itself, if I remember correctly).
Gerald
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/