• 4471阅读
  • 2回复

[提问]编译QtCreator3.0出现“无法解析的外部符号”错误 [复制链接]

上一主题 下一主题
离线roywillow
 

只看楼主 倒序阅读 楼主  发表于: 2013-12-15
尝试用VC2013+Qt5.2.0编译QtCreator3.0(x64),开始顺利,直到出现下面的错误

  1.         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
  2.    正在创建库 ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.lib 和对象 ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.exp
  3. cppeditor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl QFutureInterface<class TextEditor::HighlightingResult>::~QFutureInterface<class TextEditor::HighlightingResult>(void)" (__imp_??1?$QFutureInterface@VHighlightingResult@TextEditor@@@@UEAA@XZ),该符号在函数 "public: __cdecl QFuture<class TextEditor::HighlightingResult>::~QFuture<class TextEditor::HighlightingResult>(void)" (??1?$QFuture@VHighlightingResult@TextEditor@@@@QEAA@XZ) 中被引用
  4. cppeditor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class QFutureInterface<class TextEditor::HighlightingResult> __cdecl QFutureInterface<class TextEditor::HighlightingResult>::canceledResult(void)" (__imp_?canceledResult@?$QFutureInterface@VHighlightingResult@TextEditor@@@@SA?AV1@XZ),该符号在函数 "public: __cdecl QFuture<class TextEditor::HighlightingResult>::QFuture<class TextEditor::HighlightingResult>(void)" (??0?$QFuture@VHighlightingResult@TextEditor@@@@QEAA@XZ) 中被引用
  5. cppeditor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class QFutureInterface<class TextEditor::HighlightingResult> & __cdecl QFutureInterface<class TextEditor::HighlightingResult>::operator=(class QFutureInterface<class TextEditor::HighlightingResult> const &)" (__imp_??4?$QFutureInterface@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) 中被引用
  6. ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.dll : fatal error LNK1120: 3
  7. 个无法解析的外部命令
  8. NMAKE : fatal error U1077: “E:\VS2013\VC\BIN\amd64\link.EXE”: 返回代码“0x460”

经过搜索发现这么一个bugreport:
https://bugreports.qt-project.org/browse/QTCREATORBUG-9925
但是按照最后一层的做法,依然没有通过(Qt库是使用ltcg编译的)
求助
专业维修核潜艇,回收二手航母、二手航天飞机,大修核反应堆,拆洗导弹发动机更换机油,无人侦察机手动挡改自动,航天飞机保养换三滤,飞碟外太空年检 ,各型号导弹加装迎宾踏板,高空作业擦洗卫星表面除尘、打蜡及抛光,东风全系列巡航导弹。并提供原子对撞机。量大从优,有正规发票。
离线roywillow

只看该作者 1楼 发表于: 2013-12-15
跳过CppEditor这个插件编译出来的结果就是连个高亮和自动补全提示都没有……
各位有编译Qt经验的大大们没有尝试编译Creator么
专业维修核潜艇,回收二手航母、二手航天飞机,大修核反应堆,拆洗导弹发动机更换机油,无人侦察机手动挡改自动,航天飞机保养换三滤,飞碟外太空年检 ,各型号导弹加装迎宾踏板,高空作业擦洗卫星表面除尘、打蜡及抛光,东风全系列巡航导弹。并提供原子对撞机。量大从优,有正规发票。
离线ashe0817

只看该作者 2楼 发表于: 2013-12-15
你是编译大神,帮不到你。。。
快速回复
限100 字节
 
上一个 下一个