首页| 论坛| 消息

标题:请各位大虾指教指教!非常急呀!!!visual 2003。net 编译一个带qt 的程序, 链接错误?
作者:berlin
日期:2006-09-29 11:28
内容:

我使用的是visual 2003。net 编译一个带qt 的程序。用的是别人的代码。 但是链接的时候总是错误。我网上查了一下,没有找到具体解决办法。 希望各位能指教一下。
------ Build started: Project: OpenMesh_Apps_Decimating, Configuration: Debug Win32 ------
Linking...
progviewer.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall ProgViewerWidget::qt_property(int,int,class QVariant *)" (?qt_property@ProgViewerWidget@@UAE_NHHPAVQVariant@@@Z)
progviewer.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall ProgViewerWidget::qt_emit(int,struct QUObject *)" (?qt_emit@ProgViewerWidget@@UAE_NHPAUQUObject@@@Z)
progviewer.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall ProgViewerWidget::qt_invoke(int,struct QUObject *)" (?qt_invoke@ProgViewerWidget@@UAE_NHPAUQUObject@@@Z)
progviewer.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall ProgViewerWidget::qt_cast(char const *)" (?qt_cast@ProgViewerWidget@@UAEPAXPBD@Z)
progviewer.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall ProgViewerWidget::className(void)const " (?className@ProgViewerWidget@@UBEPBDXZ)
progviewer.obj : error LNK2019: unresolved external symbol "public: static class QMetaObject * __cdecl ProgViewerWidget::staticMetaObject(void)" (?staticMetaObject@ProgViewerWidget@@SAPAVQMetaObject@@XZ) referenced in function "public: virtual class QMetaObject * __thiscall ProgViewerWidget::metaObject(void)const " (?metaObject@ProgViewerWidget@@UBEPAVQMetaObject@@XZ)
progviewer.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall QGLViewerWidget::qt_property(int,int,class QVariant *)" (?qt_property@QGLViewerWidget@@UAE_NHHPAVQVariant@@@Z)
QGLViewerWidget.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall QGLViewerWidget::qt_property(int,int, ..


#1 [xinqingfly 09-30 10:25]
没有链接qt的lib吧,在工程属性的链接选项中加入相应的qt库
#2 [wengweng 09-30 17:49]
qt的环境变量不对.你用是的人家的程序.通常最可能的是你和他安装qt的目录不一致,所以你直接拿来编译就会出现上面的错误.

回复 发表
主题 版块