thread_primitives.hpp compile error msvc 9.0

c:\code\lib\boost-trunk\boost\thread\win32\thread_primitives.hpp(287) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed c:\code\lib\boost-trunk\boost\thread\win32\thread_primitives.hpp(287) : see declaration of '_interlockedbittestandset' -- Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode

"Emil Dotchevski" <emil@revergestudios.com> writes:
c:\code\lib\boost-trunk\boost\thread\win32\thread_primitives.hpp(287) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
c:\code\lib\boost-trunk\boost\thread\win32\thread_primitives.hpp(287) : see declaration of '_interlockedbittestandset'
It works for me with revision 45689. Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

On Sat, May 24, 2008 at 10:01 PM, Emil Dotchevski <emil@revergestudios.com> wrote:
c:\code\lib\boost-trunk\boost\thread\win32\thread_primitives.hpp(287) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
c:\code\lib\boost-trunk\boost\thread\win32\thread_primitives.hpp(287) : see declaration of '_interlockedbittestandset'
Let me guess: you are compiling with __fastcall as the default calling convention? windows.h and intrin.h have a super bad track record of stepping on each other's toes with calling conventions on intrinsic function declarations. I'm guessing one of them are colliding with the declaration in thread_primitives.hpp. -- Cory Nelson
participants (3)
-
anthony.ajw@gmail.com
-
Cory Nelson
-
Emil Dotchevski