gpt4 book ai didi

c++ - 从 Qt3 到 Qt4 : issues with internal classes ( Q3GList & Q3PtrCollection )

转载 作者:行者123 更新时间:2023-11-28 07:56:50 26 4
gpt4 key购买 nike

我正在将代码从 Qt3 更新到 Qt4。我使用了 qt3to4 移植工具,它解决了我的一些问题。但是仍然存在一些错误:

g++ -m64 -Wl,-O1 -o CONVECTION_DYN_CODE_version_initiale Convection_points.o Convection_points_prof.o glbox.o globjwin.o main.o algebra.o evector.o matrix.o matrix4.o quaternion.o write_binary.o write_binary_normals.o moc_glbox.o moc_globjwin.o   -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib64 -lQtOpenGL -lQtGui -lQtCore -lGLU -lglut -lGL -lpthread -lCGAL -fp-model -lboost_thread -lgmp
glbox.o:(.rodata._ZTI7Q3GList[typeinfo for Q3GList]+0x10): undefined reference to `typeinfo for Q3PtrCollection'

&

glbox.o:(.rodata._ZTV7Q3GList[vtable for Q3GList]+0x18): undefined reference to `Q3GList::clear()'
glbox.o:(.rodata._ZTV7Q3GList[vtable for Q3GList]+0x20): undefined reference to `Q3GList::~Q3GList()'
glbox.o:(.rodata._ZTV7Q3GList[vtable for Q3GList]+0x28): undefined reference to `Q3GList::~Q3GList()'
glbox.o:(.rodata._ZTV7Q3GList[vtable for Q3GList]+0x30): undefined reference to `Q3PtrCollection::newItem(void*)'
...

Q3GListQ3PtrCollection 都是内部类。我添加了相应的 header ,但仍然出现这些错误。我不知道如何解决它,因为它似乎是内部问题。

有什么想法吗?

最佳答案

您还应该链接到 qt3support 模块。

添加

QT += qt3support

到您的项目设置。

关于c++ - 从 Qt3 到 Qt4 : issues with internal classes ( Q3GList & Q3PtrCollection ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12533260/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com