编译QtCreator3.0出现“无法解析的外部符号”错误
在QtCN上问了好久没人回,qt-project.org的forum里也没人回,再到这里试试吧……尝试用VC2013+Qt5.2.0编译QtCreator3.0(x64),开始顺利,直到出现下面的错误:
link /NOLOGO /DYNAMICBASE:NO /NXCOMPAT /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.dll.embed.manifest /OUT:..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.dll @C:\Users\Roy\AppData\Local\Temp\nm6AF7.tmp
正在创建库 ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.lib 和对象 ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.exp
cppeditor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl QFutureInte易做图ce<class TextEditor::HighlightingResult>::~QFutureInte易做图ce<class TextEditor::HighlightingResult>(void)" (__imp_??1?$QFutureInte易做图ce@VHighlightingResult@TextEditor@@@@UEAA@XZ),该符号在函数 "public: __cdecl QFuture<class TextEditor::HighlightingResult>::~QFuture<class TextEditor::HighlightingResult>(void)" (??1?$QFuture@VHighlightingResult@TextEditor@@@@QEAA@XZ) 中被引用
cppeditor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class QFutureInte易做图ce<class TextEditor::HighlightingResult> __cdecl QFutureInte易做图ce<class TextEditor::HighlightingResult>::canceledResult(void)" (__imp_?canceledResult@?$QFutureInte易做图ce@VHighlightingResult@TextEditor@@@@SA?AV1@XZ),该符号在函数 "public: __cdecl QFuture<class TextEditor::HighlightingResult>::QFuture<class TextEditor::HighlightingResult>(void)" (??0?$QFuture@VHighlightingResult@TextEditor@@@@QEAA@XZ) 中被引用
cppeditor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class QFutureInte易做图ce<class TextEditor::HighlightingResult> & __cdecl QFutureInte易做图ce<class TextEditor::HighlightingResult>::operator=(class QFutureInte易做图ce<class TextEditor::HighlightingResult> const &)" (__imp_??4?$QFutureInte易做图ce@VHighlightingResult@TextEditor@@@@QEAAAEAV0@AEBV0@@Z),该符号在函数 "public: class QFuture<class TextEditor::HighlightingResult> & __cdecl QFuture<class TextEditor::HighlightingResult>::operator=(class QFuture<class TextEditor::HighlightingResult> const &)" (??4?$QFuture@VHighlightingResult@TextEditor@@@@QEAAAEAV0@AEBV0@@Z) 中被引用
..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.dll : fatal error LNK1120: 3
个无法解析的外部命令
NMAKE : fatal error U1077: “E:\VS2013\VC\BIN\amd64\link.EXE”: 返回代码“0x460”
经过搜索发现这么一个bugreport:
https://bugreports.qt-project.org/browse/QTCREATORBUG-9925
但是按照最后一层的做法,依然没有通过(Qt库是使用ltcg编译的)
求助
补充:移动开发 , Qt