From: Ian Miller Newsgroups: comp.os.msdos.djgpp Subject: Re: why do i get this compiler error? Date: 03 Dec 1997 17:58:48 +0000 Organization: Defence Research Agency Message-ID: <871zzucnqf.fsf@hasn.dera.gov.uk> References: <65q40m$6f3 AT camel12 DOT mindspring DOT com> NNTP-Posting-Host: 146.80.115.106 Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "michael" writes: > the program has been wriiten correctly, there are no syntax errors. :) If the compiler says that there is a parse error there IS a syntax error no matter what you say. > --------------------------------------- > // Specification file: plisting.h > // declaring class phonelisting > #ifndef PLISTING_H > #define PLISTING_H > #include > class phoneListing { > public: > ... > > private: > string ln, fn pn; // the compiler keeps refering to this line... ^^^^^ Do you perhaps require a comma in there somewhere? -- Ian Miller, Dorset, UK The views expressed above are entirely those of the writer and do not represent the views, policy, or understanding of any other person or official body.