XChinux
这个DEMO程序您能编译成功吗?
我这里无法编译.错误信息如下:
- adddialog.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall AddDialog::~AddDialog(void)" (??1AddDialog@@UAE@XZ),该符号在函数 "public: virtual void * __thiscall AddDialog::`scalar deleting destructor'(unsigned int)" (??_GAddDialog@@UAEPAXI@Z) 中被引用
- addressbook.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall AddDialog::~AddDialog(void)" (??1AddDialog@@UAE@XZ)
- moc_adddialog.obj : error LNK2019: 无法解析的外部符号 "private: void __thiscall AddDialog::on_okButton_clicked(void)" (?on_okButton_clicked@AddDialog@@AAEXXZ),该符号在函数 "public: virtual int __thiscall AddDialog::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@AddDialog@@UAEHW4Call@QMetaObject@@HPAPAX@Z) 中被引用
- C:\Program Files\Trolltech\Qt VS Integration\samples\AddressBook\Debug\AddressBook.exe : fatal error LNK1120: 2 个无法解析的外部命令
- 生成日志保存在“file://c:\Program Files\Trolltech\Qt VS Integration\samples\AddressBook\Debug\BuildLog.htm”
我的环境如下:
- Microsoft Visual Studio 2005
- 版本 8.0.50727.42 (RTM.050727-4200)
- Microsoft .NET Framework
- 版本 2.0.50727
- 已安装的版本: Professional
- Microsoft Visual C++ 2005 xxxxx-xxx-000000x-xxxxx
- Microsoft Visual C++ 2005
- Qt Visual Studio Integration (1.1.1)
- Qt Integration for Visual Studio .NET
- Qt 桌面版 4.1.1
- Visual Assist X
[ 此贴被ruyi7952在2006-03-25 18:34重新编辑 ]