我尝试在qt Creator中编译项目,但出现非常奇怪的链接器错误:
LINK : fatal error LNK1117: Syntax error in Option "".
完整的编译输出:
22:33:30: Running steps for project ch07-image-filter...
22:33:30: Configuration unchanged, skipping qmake step.
22:33:30: Starting: "E:\Qt\Tools\QtCreator\bin\jom.exe"
cd filter-plugin-designer\ && ( if not exist Makefile E:\Qt\5.12.2\msvc2017\bin\qmake.exe -o Makefile E:\Cpp_Projekte\QT\ch07-image-filter\filter-plugin-designer\filter-plugin-designer.pro -spec win32-msvc ) && E:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
E:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release
cd image-filter\ && ( if not exist Makefile E:\Qt\5.12.2\msvc2017\bin\qmake.exe -o Makefile E:\Cpp_Projekte\QT\ch07-image-filter\image-filter\image-filter.pro -spec win32-msvc ) && E:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
E:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release
link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:release\image-filter.exe @C:\Users\GOD\AppData\Local\Temp\image-filter.exe.7872.15.jom
LINK : fatal error LNK1117: Syntaxfehler in Option "".
jom: E:\Cpp_Projekte\QT\build-ch07-image-filter-Desktop_Qt_5_12_2_MSVC2017_32bit-Release\image-filter\Makefile.Release [release\image-filter.exe] Error 1117
jom: E:\Cpp_Projekte\QT\build-ch07-image-filter-Desktop_Qt_5_12_2_MSVC2017_32bit-Release\image-filter\Makefile [release] Error 2
jom: E:\Cpp_Projekte\QT\build-ch07-image-filter-Desktop_Qt_5_12_2_MSVC2017_32bit-Release\Makefile [sub-image-filter-make_first] Error 2
22:33:31: The process "E:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project ch07-image-filter (kit: Desktop Qt 5.12.2 MSVC2017 32bit)
When executing step "Make"
22:33:31: Elapsed time: 00:00.
我不知道为什么出现此链接器错误。我可以检查什么?