This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bad error message.
- To: zvyagin at gamspc7 dot ihep dot su
- Subject: Re: Bad error message.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 9 May 2000 22:59:47 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <Pine.LNX.4.20.0005092315001.9657-100000@gamspc7.ihep.su>
> But there is body for method A::f()!
> It seems that g++ have to say that there is no method A::g().
Thanks for your bug report. This problem is hard to correct, since the
error message originates from the linker. From the linker's point of
view, the analysis
undefined reference to `A::f(void)'
is correct: there really is no reference to A::f in the object files
(go check it yourself). That does not mean there is no implementation
for that function - it only means that the implementation had not been
generated into an object file.
Regards,
Martin