Boost logo

Boost Users :

Subject: Re: [Boost-users] error C2733 second C linkage of overloaded function InterlockedIncrement not allowed
From: menuthaur (menuthaur_at_[hidden])
Date: 2008-09-22 10:32:56


Hello,

Sorry i forgot.
I'm using boost verison 1.36

I'll try, the define BOOST_USE_WINDOWS_H maybe i have luck.
Thanks.

Regards,

Marcus Gehr

-------- Original-Nachricht --------
> Datum: Mon, 22 Sep 2008 17:00:33 +0300
> Von: "Peter Dimov" <pdimov_at_[hidden]>
> An: boost-users_at_[hidden]
> Betreff: Re: [Boost-users] error C2733 second C linkage of overloaded function InterlockedIncrement not allowed

> menuthaur:
> > Hello,
> >
> > I'm a newbie in using boost.
> >
> > First : For programming I'm using Visual Studio 2008 with SP1 (german
> > edition) and the target platform is Windows CE 6.0
> > with PXA270 (XScale, ARMVI) processor. And i'm using the STL delivered
> > with Visual Studio.
> >
> > If i include shared_ptr.hpp i get at compiling the errors :
> > "error C2733 second C linkage of overloaded function
> > 'InterlockedIncrement' not allowed."
> > "error C2733 second C linkage of overloaded function
> > 'InterlockedDecrement' not allowed."
> > "error C2733 second C linkage of overloaded function
> > 'InterlockedCompareExchange not allowed."
> > "error C2733 second C linkage of overloaded function
> 'InterlockedExchange'
> > not allowed."
> > "error C2733 second C linkage of overloaded function
> > 'InterlockedExchangeAdd' not allowed."
> >
> > All errors are targeting to the file interlocked.hpp line 55-63.
>
> What version of Boost are you using?
>
> > So my question is, what can i do to solve this problem ?
>
> You can try to #define BOOST_USE_WINDOWS_H, or maybe upgrade to 1.36.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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