8 Oct
2009
8 Oct
'09
2:58 p.m.
This is an old thread (1 year old) I'm answering to: This is about compiling some of the Boost library (1.39) on Windows CE 6.0. I got the following error: error C2733 second C linkage of overloaded function _InterlockedIncrement not allowed It turns out that "_InterlockedIncrement" is already defined in winbase.h so I commented out: extern "C" long __cdecl InterlockedIncrement( long* ); extern "C" long __cdecl InterlockedDecrement( long* ); extern "C" long __cdecl InterlockedCompareExchange( long*, long, long ); extern "C" long __cdecl InterlockedExchange( long*, long ); extern "C" long __cdecl InterlockedExchangeAdd( long*, long ); In interlocked.hpp and everything compiled fine.