您的位置:首页 > Web前端

再次遇到 undefined reference to `vtable for XXXX'

2011-08-25 12:54 483 查看
 
之前遇到过一次,这次又遇到,又想不起来了,搜了一通还是找到了上次搜索的结果,特此记录备忘:

http://bytes.com/topic/c/answers/161894-undefined-reference-vtable

===================

That is the most obscure error message the gcc produces, but the reason

is usually simple:

The compiler has to put the vtable into an object file. It puts it into

the object file where the definition of the first non-inline member

function is. If it is missing, you get this rather unhelpful linker

error. Please check the existence of the definitions of your member
functions.

Gabriel

===================

 

原因就是:有成员函数未定义...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息