Bug code list
moc_chatclient.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall ChatClient::sendData(class QByteArray const&)"(?sendData@ChatClient@@QAEXABVQByteArray@@@Z) referenced in function "private: static void __cdecl ChatClient::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall@ChatClient@@CAXPAVQObject@@W4Call@QMetaObject@@HPAPAX@Z)
debug\btchat.exe:-1: error: LNK1120: 1 unresolved externals
D:\VmwareShare\TOPGUN\3rdparty\qtxlsx\src\xlsx\xlsxzipreader.cpp:52: error: C2027: use of undefined type 'QVector<QZipReader::FileInfo>'
D:\VmwareShare\TOPGUN\3rdparty\qtxlsx\src\xlsx\xlsxzipreader.cpp:52: error: C2440: 'initializing' : cannot convert from 'QVector<QZipReader::FileInfo>' to 'QList<QZipReader::FileInfo>'No constructor could take the source type, or constructor overload resolution was ambiguous
解决方案:
- ChatClient::sendData(class QByteArray const&) 注释掉,申明没有定义。
#include <QVector>
QList->QVector