delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/03/22:01:27

From: Ian Miller <itmiller AT dera DOT gov DOT uk>
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

"michael" <mjordan2 AT pipeline DOT com> 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 <OURSTR.H>
> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019