Boost logo

Boost Users :

Subject: Re: [Boost-users] error when using boost with visual c++
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2009-02-28 17:18:13


Hi:
Yes I changed the projects calling convension to stdcall.
Cheers
Sean.

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Peter Dimov
Sent: 28 February 2009 21:58
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] error when using boost with visual c++

Sean Farrow:

> Hi;
> When using boost with visual c++ 2005, I'm getting the following two
> error:
> c:\program files\microsoft visual studio 8\vc\include\intrin.h(198) :
> error C2373: '_InterlockedExchange' : redefinition; different type
> modifiers
> c:\program files\boost\boost\detail\interlocked.hpp(60) : see
> declaration of '_InterlockedExchange'
>
> Has anyone got any ideas what is causing this?

interlocked.hpp(60) for me is:

extern "C" long __cdecl _InterlockedExchange( long volatile *, long);

intrin.h(198) is:

__MACHINEI(long _InterlockedExchange(long volatile *, long))

where __MACHINEI(X) is defined as X;

so the two declarations should be the same except for the __cdecl. Are
you overriding the default calling convention?

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
 

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3896 (20090228) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3896 (20090228) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


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