From: SourceForge.net <no...@so...> - 2009-12-20 19:34:54
|
Bugs item #2918238, was opened at 2009-12-20 11:34 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2918238&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: w32api Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Greatwolf () Assigned to: Nobody/Anonymous (nobody) Summary: Cannot build STLPort Test units Initial Comment: Mingw tools installed and setup with the latest stable download mingw-5.1.6.exe. When building STLPort 5.2.1 Test units, the following compilation errors occur: .../winbase.h:1667: error: declaration of C function `LONG InterlockedDecrement(LONG*)' conflicts with .../_windows.h:167: error: previous declaration `long int InterlockedDecrement(volatile long int*)' here .../winbase.h:: error: declaration of C function `LONG InterlockedIncrement(LONG*)' conflicts with .../_windows.h:: error: previous declaration `long int InterlockedIncrement(volatile long int*)' here .../winbase.h:: error: declaration of C function `LONG InterlockedExchange(LONG*)' conflicts with .../_windows.h:: error: previous declaration `long int InterlockedExchange(volatile long int*)' here >From the Mingw mailing list, Keith pointed out that the error is due to non-conforming calling convention for some of the functions in winbase.h used by mingw as it relates to MSDN. Keith quote: "Looks like *some* of the Increment* function prototypes have been incorrectly declared in w32api's winbase.h; (MSDN says some should be __cdecl, but w32api declares all as WINAPI, (i.e. __stdcall))." ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2918238&group_id=2435 |