1. 程式人生 > >tdm在win7 x64下靜態編譯 QT5.5 64bit版本問題2

tdm在win7 x64下靜態編譯 QT5.5 64bit版本問題2

問題描述: g++ -c -pipe -fno-keep-inline-dllexport -m64 -g -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_BUILD_AXCONTAINER_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x04080 0 -DQT_NO_EXCEPTIONS -DQT_FORCE_ASSERTS -DQT_AXBASE_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Itmp -IE:\Coding\QT\SourceCode\qt-everywhere-
opensource-src-5.5.0\qtbase\include\QtGui\5.5.0 -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbase\include\QtGui\5.5.0\QtGui -IE:\Cod ing\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbase\include\QtWidgets\5.5.0 -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbas e\include\QtWidgets\5.5.0\QtWidgets -I..\..\..\include -I..\..\..\include\ActiveQt -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbase
\include -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbase\include\QtWidgets -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src- 5.5.0\qtbase\include\QtGui -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbase\include\QtCore\5.5.0 -IE:\Coding\QT\SourceCode\qt-every where-opensource-src-5.5.0\qtbase\include\QtCore\5.5.0\QtCore -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbase\include\QtCore -I.mo
c\debug -I.uic -IE:\Coding\QT\SourceCode\qt-everywhere-opensource-src-5.5.0\qtbase\mkspecs\win32-g++ -o .obj\debug\qaxscript.o qaxscript.cpp In file included from C:/TDM-GCC-64/x86_64-w64-mingw32/include/initguid.h:8:0, from qaxscript.cpp:61: C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:470:1: error: redefinition of 'const GUID IID_IActiveScriptSite' DEFINE_GUID(IID_IActiveScriptSite, 0xdb01a1e3, 0xa42b, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:189:1: note: 'const GUID IID_IActiveScriptSite' previously defined here DEFINE_GUID(IID_IActiveScriptSite, 0xdb01a1e3, 0xa42b, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:696:1: error: redefinition of 'const GUID IID_IActiveScriptError' DEFINE_GUID(IID_IActiveScriptError, 0xeae1ba61, 0xa4ed, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:194:1: note: 'const GUID IID_IActiveScriptError' previously defined here DEFINE_GUID(IID_IActiveScriptError, 0xeae1ba61, 0xa4ed, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:831:1: error: redefinition of 'const GUID IID_IActiveScriptError64' DEFINE_GUID(IID_IActiveScriptError64, 0xb21fb2a1, 0x5b8f, 0x4963, 0x8c,0x21, 0x21,0x45,0x0f,0x84,0xed,0x7f); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:195:1: note: 'const GUID IID_IActiveScriptError64' previously defined here DEFINE_GUID(IID_IActiveScriptError64, 0xb21fb2a1, 0x5b8f, 0x4963, 0x8c, 0x21, 0x21, 0x45, 0x0f, 0x84, 0xed, 0x7f); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:950:1: error: redefinition of 'const GUID IID_IActiveScriptSiteWindow' DEFINE_GUID(IID_IActiveScriptSiteWindow, 0xd10f6761, 0x83e9, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:191:1: note: 'const GUID IID_IActiveScriptSiteWindow' previously defined here DEFINE_GUID(IID_IActiveScriptSiteWindow, 0xd10f6761, 0x83e9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:1054:1: error: redefinition of 'const GUID IID_IActiveScriptSiteUIControl' DEFINE_GUID(IID_IActiveScriptSiteUIControl, 0xaedae97e, 0xd7ee, 0x4796, 0xb9,0x60, 0x7f,0x09,0x2a,0xe8,0x44,0xab); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:193:1: note: 'const GUID IID_IActiveScriptSiteUIControl' previously defined here DEFINE_GUID(IID_IActiveScriptSiteUIControl, 0xaedae97e, 0xd7ee, 0x4796, 0xb9, 0x60, 0x7f, 0x9, 0x2a, 0xe8, 0x44, 0xab); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:1142:1: error: redefinition of 'const GUID IID_IActiveScriptSiteInterruptPoll' DEFINE_GUID(IID_IActiveScriptSiteInterruptPoll, 0x539698a0, 0xcdca, 0x11cf, 0xa5,0xeb, 0x00,0xaa,0x00,0x47,0xa0,0x63); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:192:1: note: 'const GUID IID_IActiveScriptSiteInterruptPoll' previously defined here DEFINE_GUID(IID_IActiveScriptSiteInterruptPoll, 0x539698a0, 0xcdca, 0x11cf, 0xa5, 0xeb, 0x00, 0xaa, 0x00, 0x47, 0xa0, 0x63); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:1225:1: error: redefinition of 'const GUID IID_IActiveScript' DEFINE_GUID(IID_IActiveScript, 0xbb1a2ae1, 0xa4f9, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:178:1: note: 'const GUID IID_IActiveScript' previously defined here DEFINE_GUID(IID_IActiveScript, 0xbb1a2ae1, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:1566:1: error: redefinition of 'const GUID IID_IActiveScriptParse32' DEFINE_GUID(IID_IActiveScriptParse32, 0xbb1a2ae2, 0xa4f9, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:179:1: note: 'const GUID IID_IActiveScriptParse32' previously defined here DEFINE_GUID(IID_IActiveScriptParse32, 0xbb1a2ae2, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:1741:1: error: redefinition of 'const GUID IID_IActiveScriptParse64' DEFINE_GUID(IID_IActiveScriptParse64, 0xc7ef7658, 0xe1ee, 0x480e, 0x97,0xea, 0xd5,0x2c,0xb4,0xd7,0x6d,0x17); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:180:1: note: 'const GUID IID_IActiveScriptParse64' previously defined here DEFINE_GUID(IID_IActiveScriptParse64, 0xc7ef7658, 0xe1ee, 0x480e, 0x97, 0xea, 0xd5, 0x2c, 0xb4, 0xd7, 0x6d, 0x17); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:1926:1: error: redefinition of 'const GUID IID_IActiveScriptParseProcedureOld32' DEFINE_GUID(IID_IActiveScriptParseProcedureOld32, 0x1cff0050, 0x6fdd, 0x11d0, 0x93,0x28, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:183:1: note: 'const GUID IID_IActiveScriptParseProcedureOld32' previously defined here DEFINE_GUID(IID_IActiveScriptParseProcedureOld32, 0x1cff0050, 0x6fdd, 0x11d0, 0x93, 0x28, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2035:1: error: redefinition of 'const GUID IID_IActiveScriptParseProcedureOld64' DEFINE_GUID(IID_IActiveScriptParseProcedureOld64, 0x21f57128, 0x08c9, 0x4638, 0xba,0x12, 0x22,0xd1,0x5d,0x88,0xdc,0x5c); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:184:1: note: 'const GUID IID_IActiveScriptParseProcedureOld64' previously defined here DEFINE_GUID(IID_IActiveScriptParseProcedureOld64, 0x21f57128, 0x08c9, 0x4638, 0xba, 0x12, 0x22, 0xd1, 0x5d, 0x88, 0xdc, 0x5c); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2154:1: error: redefinition of 'const GUID IID_IActiveScriptParseProcedure32' DEFINE_GUID(IID_IActiveScriptParseProcedure32, 0xaa5b6a80, 0xb834, 0x11d0, 0x93,0x2f, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:185:1: note: 'const GUID IID_IActiveScriptParseProcedure32' previously defined here DEFINE_GUID(IID_IActiveScriptParseProcedure32, 0xaa5b6a80, 0xb834, 0x11d0, 0x93, 0x2f, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2266:1: error: redefinition of 'const GUID IID_IActiveScriptParseProcedure64' DEFINE_GUID(IID_IActiveScriptParseProcedure64, 0xc64713b6, 0xe029, 0x4cc5, 0x92,0x00, 0x43,0x8b,0x72,0x89,0x0b,0x6a); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:186:1: note: 'const GUID IID_IActiveScriptParseProcedure64' previously defined here DEFINE_GUID(IID_IActiveScriptParseProcedure64, 0xc64713b6, 0xe029, 0x4cc5, 0x92, 0x00, 0x43, 0x8b, 0x72, 0x89, 0x0b, 0x6a); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2388:1: error: redefinition of 'const GUID IID_IActiveScriptParseProcedure2_32' DEFINE_GUID(IID_IActiveScriptParseProcedure2_32, 0x71ee5b20, 0xfb04, 0x11d1, 0xb3,0xa8, 0x00,0xa0,0xc9,0x11,0xe8,0xb2); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:187:1: note: 'const GUID IID_IActiveScriptParseProcedure2_32' previously defined here DEFINE_GUID(IID_IActiveScriptParseProcedure2_32, 0x71ee5b20, 0xfb04, 0x11d1, 0xb3, 0xa8, 0x00, 0xa0, 0xc9, 0x11, 0xe8, 0xb2); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2471:1: error: redefinition of 'const GUID IID_IActiveScriptParseProcedure2_64' DEFINE_GUID(IID_IActiveScriptParseProcedure2_64, 0xfe7c4271, 0x210c, 0x448d, 0x9f,0x54, 0x76,0xda,0xb7,0x04,0x7b,0x28); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:188:1: note: 'const GUID IID_IActiveScriptParseProcedure2_64' previously defined here DEFINE_GUID(IID_IActiveScriptParseProcedure2_64, 0xfe7c4271, 0x210c, 0x448d, 0x9f, 0x54, 0x76, 0xda, 0xb7, 0x04, 0x7b, 0x28); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2564:1: error: redefinition of 'const GUID IID_IActiveScriptEncode' DEFINE_GUID(IID_IActiveScriptEncode, 0xbb1a2ae3, 0xa4f9, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:181:1: note: 'const GUID IID_IActiveScriptEncode' previously defined here DEFINE_GUID(IID_IActiveScriptEncode, 0xbb1a2ae3, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2711:1: error: redefinition of 'const GUID IID_IActiveScriptHostEncode' DEFINE_GUID(IID_IActiveScriptHostEncode, 0xbee9b76e, 0xcfe3, 0x11d1, 0xb7,0x47, 0x00,0xc0,0x4f,0xc2,0xb0,0x85); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:182:1: note: 'const GUID IID_IActiveScriptHostEncode' previously defined here DEFINE_GUID(IID_IActiveScriptHostEncode, 0xbee9b76e, 0xcfe3, 0x11d1, 0xb7, 0x47, 0x00, 0xc0, 0x4f, 0xc2, 0xb0, 0x85); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2805:1: error: redefinition of 'const GUID IID_IBindEventHandler' DEFINE_GUID(IID_IBindEventHandler, 0x63cdbcb0, 0xc1b1, 0x11d0, 0x93,0x36, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:196:1: note: 'const GUID IID_IBindEventHandler' previously defined here DEFINE_GUID(IID_IBindEventHandler, 0x63cdbcb0, 0xc1b1, 0x11d0, 0x93, 0x36, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:2893:1: error: redefinition of 'const GUID IID_IActiveScriptStats' DEFINE_GUID(IID_IActiveScriptStats, 0xb8da6310, 0xe19b, 0x11d0, 0x93,0x3c, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:197:1: note: 'const GUID IID_IActiveScriptStats' previously defined here DEFINE_GUID(IID_IActiveScriptStats, 0xb8da6310, 0xe19b, 0x11d0, 0x93, 0x3c, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:3026:1: error: redefinition of 'const GUID IID_IActiveScriptProperty' DEFINE_GUID(IID_IActiveScriptProperty, 0x4954e0d0, 0xfbc7, 0x11d1, 0x84,0x10, 0x00,0x60,0x08,0xc3,0xfb,0xfc); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:198:1: note: 'const GUID IID_IActiveScriptProperty' previously defined here DEFINE_GUID(IID_IActiveScriptProperty, 0x4954E0D0, 0xFBC7, 0x11D1, 0x84, 0x10, 0x00, 0x60, 0x08, 0xC3, 0xFB, 0xFC); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:3142:1: error: redefinition of 'const GUID IID_ITridentEventSink' DEFINE_GUID(IID_ITridentEventSink, 0x1dc9ca50, 0x06ef, 0x11d2, 0x84,0x15, 0x00,0x60,0x08,0xc3,0xfb,0xfc); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:199:1: note: 'const GUID IID_ITridentEventSink' previously defined here DEFINE_GUID(IID_ITridentEventSink, 0x1dc9ca50, 0x6ef, 0x11d2, 0x84, 0x15, 0x00, 0x60, 0x08, 0xc3, 0xfb, 0xfc); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:3236:1: error: redefinition of 'const GUID IID_IActiveScriptGarbageCollector' DEFINE_GUID(IID_IActiveScriptGarbageCollector, 0x6aa2c4a0, 0x2b53, 0x11d4, 0xa2,0xa0, 0x00,0x10,0x4b,0xd3,0x50,0x90); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:200:1: note: 'const GUID IID_IActiveScriptGarbageCollector' previously defined here DEFINE_GUID(IID_IActiveScriptGarbageCollector, 0x6aa2c4a0, 0x2b53, 0x11d4, 0xa2, 0xa0, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:3321:1: error: redefinition of 'const GUID IID_IActiveScriptSIPInfo' DEFINE_GUID(IID_IActiveScriptSIPInfo, 0x764651d0, 0x38de, 0x11d4, 0xa2,0xa3, 0x00,0x10,0x4b,0xd3,0x50,0x90); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:201:1: note: 'const GUID IID_IActiveScriptSIPInfo' previously defined here DEFINE_GUID(IID_IActiveScriptSIPInfo, 0x764651d0, 0x38de, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:3406:1: error: redefinition of 'const GUID IID_IActiveScriptSiteTraceInfo' DEFINE_GUID(IID_IActiveScriptSiteTraceInfo, 0x4b7272ae, 0x1955, 0x4bfe, 0x98,0xb0, 0x78,0x06,0x21,0x88,0x85,0x69); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:190:1: note: 'const GUID IID_IActiveScriptSiteTraceInfo' previously defined here DEFINE_GUID(IID_IActiveScriptSiteTraceInfo, 0x4b7272ae, 0x1955, 0x4bfe, 0x98, 0xb0, 0x78, 0x6, 0x21, 0x88, 0x85, 0x69); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:3506:1: error: redefinition of 'const GUID IID_IActiveScriptTraceInfo' DEFINE_GUID(IID_IActiveScriptTraceInfo, 0xc35456e7, 0xbebf, 0x4a1b, 0x86,0xa9, 0x24,0xd5,0x6b,0xe8,0xb3,0x69); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:202:1: note: 'const GUID IID_IActiveScriptTraceInfo' previously defined here DEFINE_GUID(IID_IActiveScriptTraceInfo, 0xC35456E7, 0xBEBF, 0x4a1b, 0x86, 0xA9, 0x24, 0xD5, 0x6B, 0xE8, 0xB3, 0x69); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:3611:1: error: redefinition of 'const GUID IID_IActiveScriptStringCompare' DEFINE_GUID(IID_IActiveScriptStringCompare, 0x58562769, 0xed52, 0x42f7, 0x84,0x03, 0x49,0x63,0x51,0x4e,0x1f,0x11); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/activscp.h:206:1: note: 'const GUID IID_IActiveScriptStringCompare' previously defined here DEFINE_GUID(IID_IActiveScriptStringCompare, 0x58562769, 0xED52, 0x42f7, 0x84, 0x03, 0x49, 0x63, 0x51, 0x4E, 0x1F, 0x11); ^ Makefile.Debug:1874: recipe for target '.obj/debug/qaxscript.o' failed mingw32-make[5]: *** [.obj/debug/qaxscript.o] Error 1 mingw32-make[5]: Leaving directory 'E:/Coding/QT/SourceCode/qt-everywhere-opensource-src-5.5.0/qtactiveqt/src/activeqt/container' Makefile:38: recipe for target 'debug-all' failed mingw32-make[4]: *** [debug-all] Error 2 mingw32-make[4]: Leaving directory 'E:/Coding/QT/SourceCode/qt-everywhere-opensource-src-5.5.0/qtactiveqt/src/activeqt/container' Makefile:69: recipe for target 'sub-container-make_first-ordered' failed mingw32-make[3]: *** [sub-container-make_first-ordered] Error 2 mingw32-make[3]: Leaving directory 'E:/Coding/QT/SourceCode/qt-everywhere-opensource-src-5.5.0/qtactiveqt/src/activeqt' Makefile:39: recipe for target 'sub-activeqt-make_first-ordered' failed mingw32-make[2]: *** [sub-activeqt-make_first-ordered] Error 2 mingw32-make[2]: Leaving directory 'E:/Coding/QT/SourceCode/qt-everywhere-opensource-src-5.5.0/qtactiveqt/src' Makefile:41: recipe for target 'sub-src-make_first' failed mingw32-make[1]: *** [sub-src-make_first] Error 2 mingw32-make[1]: Leaving directory 'E:/Coding/QT/SourceCode/qt-everywhere-opensource-src-5.5.0/qtactiveqt' Makefile:323: recipe for target 'module-qtactiveqt-make_first' failed mingw32-make: *** [module-qtactiveqt-make_first] Error 2 參考網頁: https://forum.qt.io/topic/55910/error-compiling-qt5-5-with-mingw-5-1-activeqt-redefined-guid-s/5 解決方法: 這個是由於qt5.5.0程式碼巨集定義未考慮充分,導致mingw的庫檔案activscp.h中變數重複定義造成的 1. 找到原始碼資料夾下的這個檔案 \qt-everywhere-opensource-src-5.5.0\qtactiveqt\src\activeqt\container\qaxscript.cpp 2. 定位到以下程式碼 #if defined(Q_CC_GNU) && __MINGW64_VERSION_MAJOR == 3 && __MINGW64_VERSION_MINOR > 0 // Workaround for mingw-w64 bug #464 // See https://sourceforge.net/p/mingw-w64/bugs/464/ # define _NO_SCRIPT_GUIDS #elif defined(Q_CC_BOR) && __BORLANDC__ < 0x560 # define QT_NO_QAXSCRIPT #endif 3. 在上面這段程式碼下面加入以下巨集定義 #ifndef _NO_SCRIPT_GUIDS #define _NO_SCRIPT_GUIDS #endif