Skip to content
Prev 46857 / 63424 Next

C++ debugging help needed

On Wed, Oct 02, 2013 at 11:05:19AM -0400, Duncan Murdoch wrote:
....
That warning looks suspicious.  Are your sure gdb is finding the right
source files, and that the object code has been built from them?
I don't know, but I think it's possible to give fully qualified type
names to gdb to force it to use the right definition.  That's assuming
that both Shape's are in different namespaces.  If they aren't, that's
likely the problem.
Are you invoking the destructor explicitly?  An object should know
it's type, which should result in the right call without much effort.