This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "There is extra text on this line" error.


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]