linking error

P

pradeep

hi,
I am getting the following error when compiling my c++ program using
g++3.2
Thanks for any help.

In function `TreeNode::TreeNode[in-charge](QListView*, QString
const&, Indic::Node*)':
..obj/tree_gui.o(.text+0x173): undefined reference to `vtable for
TreeNode'

I have a simple class TreeNode and pointer of the same class in the
class

thanks
pradeep
 
K

Kevin Goodsell

pradeep said:
hi,
I am getting the following error when compiling my c++ program using
g++3.2
Thanks for any help.

In function `TreeNode::TreeNode[in-charge](QListView*, QString
const&, Indic::Node*)':
.obj/tree_gui.o(.text+0x173): undefined reference to `vtable for
TreeNode'

I have a simple class TreeNode and pointer of the same class in the
class

thanks
pradeep

Isn't it obvious? You have a bug on line 42.

-Kevin
 
J

Janusz Szpilewski

pradeep said:
hi,
I am getting the following error when compiling my c++ program using
g++3.2
Thanks for any help.

In function `TreeNode::TreeNode[in-charge](QListView*, QString
const&, Indic::Node*)':
..obj/tree_gui.o(.text+0x173): undefined reference to `vtable for
TreeNode'

I have a simple class TreeNode and pointer of the same class in the
class

This error message suggests that the virtual method table of the class
TreeNode was not generated by the compiler. It happens when the first
non-inline virtual member function is not defined (implemented). So
check if it is the case in your code.

Regards,
Janusz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top