help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error message


From: André Pönitz
Subject: Re: Error message
Date: Wed, 28 Apr 2004 12:20:32 +0000 (UTC)

llewelly <llewelly.at@xmission.dot.com> wrote:
> André Pönitz <poenitz@gmx.net> writes:
> 
> > Trying to compile
> >
> >       class A {};
> >
> >       int main()
> >       {
> >               A a;
> >               a.foo();
> >       }
> >
> > yields
> >
> >       d.C: In function `int main()':
> >       d.C:7: error: `foo' undeclared (first use this function)
> >       d.C:7: error: (Each undeclared identifier is reported only once for 
> > each 
> >                function it appears in.)
> >
> > in g++ 3.3.1.
> [snip]
> 
> 2.95.3 says:
> 
> andre_ponitz.cc: In function `int main()':
> andre_ponitz.cc:6: no matching function for call to `A::foo ()'
> 
> 3.4.0 pre-release says:
> 
> andre_ponitz.cc: In function `int main()':
> andre_ponitz.cc:6: error: 'class A' has no member named 'foo'

Ah, thanks. This is, of course, completely sufficient.

Andre'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]