我把Qt开发工具都集成到了VC++6.0,头文件、库、bin都加了,但是编译examples例子时,又很多错,不知道什么问题。请达人指点。
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setNum(int)" (?setNum@QLabel@@UAEXH@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setNum(double)" (?setNum@QLabel@@UAEXN@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setMovie(class QMovie const &)" (?setMovie@QLabel@@UAEXABVQMovie@@@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setPicture(class QPicture const &)" (?setPicture@QLabel@@UAEXABVQPicture@@@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setPixmap(class QPixmap const &)" (?setPixmap@QLabel@@UAEXABVQPixmap@@@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setText(class QString const &)" (?setText@QLabel@@UAEXABVQString@@@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setBuddy(class QWidget *)" (?setBuddy@QLabel@@UAEXPAVQWidget@@@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setAutoResize(bool)" (?setAutoResize@QLabel@@UAEX_N@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QLabel::setAlignment(int)" (?setAlignment@QLabel@@UAEXH@Z)
hello.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QFrame::frameChanged(void)" (?frameChanged@QFrame@@MAEXXZ)
hello.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QLabel::drawContents(class QPainter *)" (?drawContents@QLabel@@MAEXPAVQPainter@@@Z)
hello.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall QFrame::drawFrame(class QPainter *)" (?drawFrame@QFrame@@MAEXPAVQPainter@@@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QFrame::setFrameRect(class QRect const &)" (?setFrameRect@QFrame@@UAEXABVQRect@@@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QFrame::setMidLineWidth(int)" (?setMidLineWidth@QFrame@@UAEXH@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QFrame::setMargin(int)" (?setMargin@QFrame@@UAEXH@Z)
hello.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall QFrame::setLineWidth(int)" (?setLineWidth@QFrame@@UAEXH@Z)
。。。。
hello.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QPtrList<class QWidget>::~QPtrList<class QWidget>(void)" (__imp_??1?$QPtrList@VQWidget@@@@UAE@XZ)
Debug/hello.exe : fatal error LNK1120: 146 unresolved externals
Error executing link.exe.
hello.exe - 147 error(s), 0 warning(s)
[ 此贴被XChinux在2008-07-20 23:04重新编辑 ]