Quote Originally Posted by sun View Post
Hi,

I have installed Qt 4.4.1 OS and MinGW 5.1.3 and am trying to compile qextserialport 1.1 and 1.2alpha.
I unzip the downloaded files and go into the folder. (Using Windows XP - cmd)
qmake runs smoothly but make produces an error:


I tried out compiling qwt wich works fine. Andy idea where to start look for the problem?

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!!!!