[Qt-interest] Qt mingw 4.4.3 fails to compile qtmain_win.cpp
Matthias Pospiech
matthias.pospiech at gmx.de
Mon Feb 9 22:06:25 CET 2009
I started the compilation of debug libaries.
It ended quite soon with the following failures:
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/imm.h:359: error:
`__out_opt' h
as not been declared
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/imm.h:359: error:
expected `,'
or `...' before "lpImeParentMenu"
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/imm.h:359: error: ISO
C++ forbi
ds declaration of `LPIMEMENUITEMINFOW' with no type
In file included from ../../include/QtCore/qatomic_windows.h:1,
from
../../include/QtCore/../../src/corelib/arch/qatomic_arch.h
:72,
from ../../include/QtCore/qatomic_arch.h:1,
from
../../include/QtCore/../../src/corelib/thread/qbasicatomic
.h:203,
from ../../include/QtCore/qbasicatomic.h:1,
from
../../include/QtCore/../../src/corelib/thread/qatomic.h:42
,
from ../../include/QtCore/qatomic.h:1,
from
../../include/QtCore/../../src/corelib/tools/qbytearray.h:
42,
from ../../include/QtCore/qbytearray.h:1,
from qtmain_win.cpp:39:
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:387:
error: `long
int InterlockedCompareExchange(long int*, long int, long int)'
redeclared as dif
ferent kind of symbol
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2292: error:
previous
declaration of `LONG InterlockedCompareExchange'
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2292: error:
previous
non-function declaration `LONG InterlockedCompareExchange'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:387:
error: confli
cts with function declaration `long int InterlockedCompareExchange(long
int*, lo
ng int, long int)'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:388:
error: `long
int InterlockedIncrement(long int*)' redeclared as different kind of symbol
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2259: error:
previous
declaration of `LONG InterlockedIncrement'
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2259: error:
previous
non-function declaration `LONG InterlockedIncrement'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:388:
error: confli
cts with function declaration `long int InterlockedIncrement(long int*)'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:389:
error: `long
int InterlockedDecrement(long int*)' redeclared as different kind of symbol
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2266: error:
previous
declaration of `LONG InterlockedDecrement'
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2266: error:
previous
non-function declaration `LONG InterlockedDecrement'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:389:
error: confli
cts with function declaration `long int InterlockedDecrement(long int*)'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:390:
error: `long
int InterlockedExchange(long int*, long int)' redeclared as different
kind of sy
mbol
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2273: error:
previous
declaration of `LONG InterlockedExchange'
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2273: error:
previous
non-function declaration `LONG InterlockedExchange'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:390:
error: confli
cts with function declaration `long int InterlockedExchange(long int*,
long int)
'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:391:
error: `long
int InterlockedExchangeAdd(long int*, long int)' redeclared as different
kind of
symbol
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2284: error:
previous
declaration of `LONG InterlockedExchangeAdd'
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2284: error:
previous
non-function declaration `LONG InterlockedExchangeAdd'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:391:
error: confli
cts with function declaration `long int InterlockedExchangeAdd(long
int*, long i
nt)'
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `bool QBasicAtomicInt::ref()':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:396:
error: `Inter
lockedIncrement' cannot be used as a function
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `bool QBasicAtomicInt::deref()':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:401:
error: `Inter
lockedDecrement' cannot be used as a function
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `bool QBasicAtomicInt::testAndSetOrdered(int, int)':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:406:
error: `Inter
lockedCompareExchange' cannot be used as a function
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `int QBasicAtomicInt::fetchAndStoreOrdered(int)':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:410:
error: `Inter
lockedExchange' cannot be used as a function
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `int QBasicAtomicInt::fetchAndAddOrdered(int)':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:414:
error: `Inter
lockedExchangeAdd' cannot be used as a function
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `bool QBasicAtomicPointer<T>::testAndSetOrdered(T*, T*)':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:421:
error: `Inter
lockedCompareExchange' cannot be used as a function
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `T* QBasicAtomicPointer<T>::fetchAndStoreOrdered(T*)':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:426:
error: `Inter
lockedExchange' cannot be used as a function
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h: In member
functio
n `T* QBasicAtomicPointer<T>::fetchAndAddOrdered(qptrdiff)':
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:430:
error: `Inter
lockedExchangeAdd' cannot be used as a function
qtmain_win.cpp: At global scope:
qtmain_win.cpp:58: error: `LPSTR' has not been declared
qtmain_win.cpp:58: error: ISO C++ forbids declaration of `parameter'
with no typ
e
qtmain_win.cpp:87: error: `LPSTR' has not been declared
qtmain_win.cpp:89: error: ISO C++ forbids declaration of `parameter'
with no typ
e
qtmain_win.cpp: In function `int WinMain(HINSTANCE__*, HINSTANCE__*,
int, int)':
qtmain_win.cpp:89: error: `int WinMain(HINSTANCE__*, HINSTANCE__*, int,
int)' re
declared as different kind of symbol
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2561: error:
previous
declaration of `int WinMain'
c:/Programme/Microsoft SDKs/Windows/v6.1/Include/winbase.h:2561: error:
previous
non-function declaration `int WinMain'
qtmain_win.cpp:89: error: conflicts with function declaration `int
WinMain(HINST
ANCE__*, HINSTANCE__*, int, int)'
qtmain_win.cpp:91: error: `LPTSTR' undeclared (first use this function)
qtmain_win.cpp:91: error: (Each undeclared identifier is reported only
once for
each function it appears in.)
qtmain_win.cpp:91: error: expected `;' before "cmdline"
qtmain_win.cpp:91: error: `cmdline' undeclared (first use this function)
qtmain_win.cpp:91: error: `GetCommandLineA' undeclared (first use this
function)
qtmain_win.cpp:91: error: expected `;' before "cmdline"
qtmain_win.cpp:106: error: invalid conversion from `char*' to `int'
qtmain_win.cpp:106: error: initializing argument 3 of `void
qWinMain(HINSTANCE
__*, HINSTANCE__*, int, int, int&, QVector<char*>&)'
mingw32-make[2]: *** [tmp/obj/debug_shared/qtmain_win.o] Error 1
mingw32-make[2]: Leaving directory `C:/Programme/Qt/mingw/4.4.3/src/winmain'
mingw32-make[1]: *** [debug] Error 2
mingw32-make[1]: Leaving directory `C:/Programme/Qt/mingw/4.4.3/src/winmain'
mingw32-make: *** [debug-C__Programme_Qt_mingw_4_4_3_src_winmain] Error 2
Matthias
More information about the Qt-interest-old
mailing list