This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
RE: C++ and useful error messages
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Subject: RE: C++ and useful error messages
- From: pmscott <pmscott at signal dot dera dot gov dot uk>
- Date: Thu, 21 Dec 2000 12:05:32 -0000
- Organization: DERA
- Reply-To: "pmscott at signal dot dera dot gov dot uk" <pmscott at signal dot dera dot gov dot uk>
On Wednesday, December 20, 2000 8:59 PM, Joe Buck
[SMTP:jbuck@racerx.synopsys.com] wrote:
>
> emsg2.C: In function `int foo()':
> emsg2.C:2: `vector' undeclared (first use this function)
> emsg2.C:2: (Each undeclared identifier is reported only once for each
> function
> it appears in.)
> emsg2.C:2: Perhaps you meant to use `std::vector' ?
> emsg2.C:2: parse error before `>' token
>
Much better: any chance of losing the wordy reported only once... bit?
How about changing:
emsg2.C:2: `vector' undeclared (first use this function)
emsg2.C:2: (Each undeclared identifier is reported only once for each
function it appears in.)
to:
emsg2.C:2: `vector' undeclared (will not report it again for this
function)
The single line error will also be less of a pain in editors which
parse the errors for you.
Thanks,
Paul Scott