我安装了qt/e 2.3.7,运行下面的例子checklists(在./examples/checklists下),使用./checklists -qws命令运行正常,我想重新make一下,结果在链接时报了好多相似的错,如下所示:
[root@wggredhat checklists]# make
g++ -c -I/usr/wgg/qt/qt-2.3.7/include -pipe -DQWS -fno-exceptions -fno-rtti -O2
-fno-default-inline -Wall -W -DNO_DEBUG -o checklists.o checklists.cpp
g++ -c -I/usr/wgg/qt/qt-2.3.7/include -pipe -DQWS -fno-exceptions -fno-rtti -O2
-fno-default-inline -Wall -W -DNO_DEBUG -o main.o main.cpp
/usr/wgg/qt/qt-2.3.7/bin/moc checklists.h -o moc_checklists.cpp
g++ -c -I/usr/wgg/qt/qt-2.3.7/include -pipe -DQWS -fno-exceptions -fno-rtti -O2
-fno-default-inline -Wall -W -DNO_DEBUG -o moc_checklists.o moc_checklists.cpp
g++ -L/usr/wgg/qt/qt-2.3.7/lib -Wl,-rpath,/usr/wgg/qt/qt-2.3.7/lib -o ./checklists checklists.o main.o moc_checklists.o -lqte -lm
checklists.o(.gnu.linkonce.t._ZN10QDropEventC2ERK6QPointN6QEvent4TypeE+0x15): In
function `QDropEvent:DropEvent[not-in-charge](QPoint const&, QEvent::Type)':
: undefined reference to `vtable for QDropEvent'
checklists.o(.gnu.linkonce.t._ZN10QDropEventC2ERK6QPointN6QEvent4TypeE+0x1c): In
function `QDropEvent:DropEvent[not-in-charge](QPoint const&, QEvent::Type)':
: undefined reference to `vtable for QDropEvent'
checklists.o(.gnu.linkonce.t._ZN10QDropEventC1ERK6QPointN6QEvent4TypeE+0x15): In
function `QDropEvent:DropEvent[in-charge](QPoint const&, QEvent::Type)':
: undefined reference to `vtable for QDropEvent'
下面还有好多类似的错,请问这是为什么啊?我曾经make过啊,没出错,这次为什么出这么多错啊!!!谢谢各位了!!! |