Boost logo

Boost Users :

Subject: Re: [Boost-users] error C2733 second C linkage of overloaded function InterlockedIncrement not allowed
From: Darth Vader (drthvdr2009_at_[hidden])
Date: 2009-10-08 10:58:04


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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net