-
Bug
-
Resolution: Done
-
P1: Critical
-
4.5.3
-
None
Hello, Qt not work with minwg64, few function will be corrected.
For example:
cd src\winmain\ && C:/mingw-w64/bin/mingw32-make.exe -f Makefile
mingw32-make.exe[1]: Entering directory `C:/qt-mingw64/src/winmain'
C:/mingw-w64/bin/mingw32-make.exe -f Makefile.Debug all
mingw32-make.exe[2]: Entering directory `C:/qt-mingw64/src/winmain'
g++ -c -g -Wall -frtti -fexceptions -mthreads -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NEEDS_QMAIN -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -I"..\..\include" -I"tmp" -I"..\..\include\QtCore" -I"c:\qt-mingw64\include\qtmain" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\qtmain_win.o qtmain_win.cpp
In file included from ..\..\include/QtCore/qatomic_windows.h:1:0,
from ..\..\include/QtCore/../../src/corelib/arch/qatomic_arch.h:78,
from ..\..\include/QtCore/qatomic_arch.h:1,
from ..\..\include/QtCore/../../src/corelib/thread/qbasicatomic.h:207,
from ..\..\include/QtCore/qbasicatomic.h:1,
from ..\..\include/QtCore/../../src/corelib/thread/qatomic.h:46,
from ..\..\include/QtCore/qatomic.h:1,
from ..\..\include\QtCore/../../src/corelib/tools/qbytearray.h:46,
from ..\..\include\QtCore/qbytearray.h:1,
from qtmain_win.cpp:42:
..\..\include/QtCore/../../src/corelib/arch/qatomic_windows.h:425:87: error: declaration of C function 'long int _InterlockedCompareExchange(long int*, long int, long int)' conflicts with
c:/mingw-w64/lib/gcc/../../x86_64-w64-mingw32/include/winbase.h:961:8: error: previous declaration 'LONG _InterlockedCompareExchange(volatile LONG*, LONG, LONG)' here
..\..\include/QtCore/../../src/corelib/arch/qatomic_windows.h:426:69: error: declaration of C function 'long int _InterlockedIncrement(long int*)' conflicts with
c:/mingw-w64/lib/gcc/../../x86_64-w64-mingw32/include/winbase.h:957:8: error: previous declaration 'LONG _InterlockedIncrement(volatile LONG*)' here
..\..\include/QtCore/../../src/corelib/arch/qatomic_windows.h:427:69: error: declaration of C function 'long int _InterlockedDecrement(long int*)' conflicts with
c:/mingw-w64/lib/gcc/../../x86_64-w64-mingw32/include/winbase.h:958:8: error: previous declaration 'LONG _InterlockedDecrement(volatile LONG*)' here
..\..\include/QtCore/../../src/corelib/arch/qatomic_windows.h:428:74: error: declaration of C function 'long int _InterlockedExchange(long int*, long int)' conflicts with
c:/mingw-w64/lib/gcc/../../x86_64-w64-mingw32/include/winbase.h:959:8: error: previous declaration 'LONG _InterlockedExchange(volatile LONG*, LONG)' here
..\..\include/QtCore/../../src/corelib/arch/qatomic_windows.h:429:77: error: declaration of C function 'long int _InterlockedExchangeAdd(long int*, long int)' conflicts with
c:/mingw-w64/lib/gcc/../../x86_64-w64-mingw32/include/winbase.h:960:8: error: previous declaration 'LONG _InterlockedExchangeAdd(volatile LONG*, LONG)' here
mingw32-make.exe[2]: *** [tmp/obj/debug_shared/qtmain_win.o] Error 1
mingw32-make.exe[2]: Leaving directory `C:/qt-mingw64/src/winmain'
mingw32-make.exe[1]: *** [debug-all] Error 2
mingw32-make.exe[1]: Leaving directory `C:/qt-mingw64/src/winmain'
C:\mingw-w64\bin\mingw32-make.exe: *** [sub-winmain-make_default-ordered] Error 2
Thanks to fix it.