< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] compile error with Windows SDK v7.1


Justin,

Thanks, I agree with you, that would be a simple way

2010/7/26 Justin Matthews <jmatthewsr@xxxxxxxxx>

Maodong,

 

As discussed, this is a problem with incompatible versions of intrin.h and the Windows Platform SDK provided by Microsoft.  The recommended workaround is to comment out the function definitions for _interlockedbittestandset and _interlockedbittestandreset in intrin.h.  See http://social.msdn.microsoft.com/Forums/en/vcprerelease/thread/61b5becd-90f9-40a4-b545-5f171fe45daa for a similar issue and workaround submitted by Microsoft.  Note that this issue, so far, has only been seen on Visual Studio 2005; the headers for VS 2008 and 2010 have been corrected.

 

Thanks,

-justin 

 

From: resiprocate-users-bounces@xxxxxxxxxxxxxxx [mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of maodong hu
Sent: Thursday, July 08, 2010 11:12 AM
To: resiprocate-users@xxxxxxxxxxxxxxx
Subject: [reSIProcate-users] compile error with Windows SDK v7.1

 

hi,

 

I installed Windows SDK v7.1 with vs2005 under Windows XP sp3, but failed to build rutil with following error:

 

\resiprocate\rutil\dnsutil.cxx(536) : error C2065: 'EAFNOSUPPORT' : undeclared identifier

\resiprocate\rutil\stun\udp.cxx(79) : error C2065: 'EADDRINUSE' : undeclared identifier

 

Compiling...

Time.cxx

d:\program files\microsoft visual studio 8\vc\include\intrin.h(944) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed

        d:\program files\microsoft visual studio 8\vc\include\intrin.h(944) : see declaration of '_interlockedbittestandset'

d:\program files\microsoft visual studio 8\vc\include\intrin.h(945) : error C2733: second C linkage of overloaded function '_interlockedbittestandreset' not allowed

        d:\program files\microsoft visual studio 8\vc\include\intrin.h(945) : see declaration of '_interlockedbittestandreset'

 

 

In the Socket.hxx, it looks like this

#if(_WIN32_WINNT < 0x0601)   

#define EWOULDBLOCK             WSAEWOULDBLOCK

#define EINPROGRESS             WSAEINPROGRESS

#define EALREADY                WSAEALREADY

 

and in the Windows SDK\v7.1\include\sdkdk.h, it looks like

 

#if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)

#define  _WIN32_WINNT   0x0601

#endif

 

so I don't know why resip limit _WIN32_WINNT  to 0x0601

 

 

 

 

 

--
Best Regards

Maodong Hu




--
Best Regards

Maodong Hu