0

我有使用 Qt Framework 和QScintilla2用 C++ 编写的项目。由于链接器错误,我无法构建 Release。我正在使用 Visual Studio 2013。

错误:

1>codeditor.obj : 错误 LNK2019: 无法解析的外部符号“public: static struct QMetaObject const QsciScintillaBase::staticMetaObject” (?staticMetaObject@QsciScintillaBase@@2UQMetaObject@@B) 在函数“public: static class QMetaObject::Connection __cdecl QObject”中引用::connect(class QsciScintillaBase const ,void (__thiscall QsciScintillaBase:: )(int,int,char const *,int,int,int,int,int,int,int),class CodeEditor const ,void (__thiscall CodeEditor::)(int,int,char const *,int,int,int,int,int,int,int),枚举 Qt::ConnectionType)" (??$connect@P8QsciScintillaBase@@AEXHHPBDHHHHHHHH@ZP8CodeEditor@@AEXHH0HHHHHHH@Z@ QObject@@SA?AVConnection@QMetaObject@@PBVQsciScintillaBase@@P83@AEXHHPBDHHHHHHH@ZPBVCodeEditor@@P84@AEXHH1HHHHHHH@ZW4ConnectionType@Qt@@@Z) 1>codeditor.obj:错误 LNK2019:未解析的外部符号“public:静态结构 QMetaObject const QsciScintilla::staticMetaObject" (?staticMetaObject@QsciScintilla@@2UQMetaObject@@B) 在函数 "public: static class QMetaObject::Connection __cdecl QObject::connect) 中引用,void (__thiscall CodeEditor::*)(int,int, class QFlags)>(class QsciScintilla const ,void (__thiscall QsciScintilla:: )(int,int,class QFlags),class CodeEditor const ,void (__thiscall CodeEditor::)(int,int,class QFlags),enum Qt::ConnectionType)" (??$connect@P8QsciScintilla@@AEXHHV?$QFlags@W4KeyboardModifier@Qt@@@@@ZP8CodeEditor@@AEXHH0@Z@QObject@@SA ?AVConnection@QMetaObject@@PBVQsciScintilla@@P83@AEXHHV?$QFlags@W4KeyboardModifier@Qt@@@@@ZPBVCodeEditor@@P85@AEXHH1@ZW4ConnectionType@Qt@@@Z) 1>release\JSD-V8-QT.exe : 致命错误 LNK1120: 2 未解决的外部

4

0 回答 0