LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 853|回复: 3

c++中一个奇怪的错误

[复制链接]
发表于 2004-10-4 22:49:15 | 显示全部楼层 |阅读模式
LocalFileList.o(.text+0x1a): In function `CLocalFileList::CLocalFileList[not-in-charge](char*)':
/usr/include/sys/stat.h:367: undefined reference to `vtable for CLocalFileList'
LocalFileList.o(.text+0x26):/usr/include/sys/stat.h:367: undefined reference to `vtable for CLocalFileList'
LocalFileList.o(.text+0x32): In function `CLocalFileList::CLocalFileList[not-in-charge](char*)':
/usr/include/c++/3.3.2/bits/basic_string.h:891: undefined reference to `vtable for CLocalFileList'
LocalFileList.o(.text+0x258): In function `CLocalFileList::CLocalFileList[in-charge](char*)':
/home/zd/Projects/ftp/src/LocalFileList.cc:7: undefined reference to `vtable for CLocalFileList'
LocalFileList.o(.text+0x264):/home/zd/Projects/ftp/src/LocalFileList.cc:7: undefined reference to `vtable for CLocalFileList'
LocalFileList.o(.text+0x270):/home/zd/Projects/ftp/src/LocalFileList.cc:7: more undefined references to `vtable for CLocalFileList' follow
collect2: ld returned 1 exit status
make: *** [ftp] Error 1

What does the message mean?
I have define CLocalFileList::CLocalFileList(char*).

CLocalFileList的父类是CFileList.
这些类之间的继承关系如下:
CLocalFileList->CFileList->CCombo->CWidget
                                   ->CButton->CWidget
                                   ->CCtrlList->CWidget
发表于 2004-10-11 21:23:14 | 显示全部楼层
跟我类似的错误啊,有那位大虾能帮忙指点啊,不胜感谢!
发表于 2004-10-12 02:12:36 | 显示全部楼层
“using namespace std;”了没有?
发表于 2004-10-12 18:10:18 | 显示全部楼层
用gcc编译的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表