when I compile QT static library I have found the problem.
I added a macro to fix this compile bug.
C:\Qt\4.4.3\src\corelib\arch\qatomic_windows.h 387 lines
// add macro by rocenting to fix compile bug
#ifndef __INTERLOCKED_DECLARED // add by rocenting.
#define __INTERLOCKED_DECLARED // add by rocenting.
extern "C" {
__declspec(dllimport) long __stdcall InterlockedCompareExchange(long *, long, long);
__declspec(dllimport) long __stdcall InterlockedIncrement(long *);
__declspec(dllimport) long __stdcall InterlockedDecrement(long *);
__declspec(dllimport) long __stdcall InterlockedExchange(long *, long);
__declspec(dllimport) long __stdcall InterlockedExchangeAdd(long *, long);
}
#endif // add by rocenting.
I hope I can help you. Good luck to you!!!!





Reply With Quote
Bookmarks