Boost C++ Libraries: Ticket #11002: winsock_init.ipp(36) : error C2665: 'InterlockedIncrement' https://svn.boost.org/trac10/ticket/11002 <p> current compilation of code that deps on boost::asio fails with vs2013 for x64, because the used types cannot be resolved in an unambiguous manner. </p> <p> &lt;build-dir&gt;\vc120-mt-gd-6_5-x64\include\boost/asio/detail/impl/winsock_init.ipp(36) : error C2665: '<a class="missing wiki">InterlockedIncrement</a>' : none of the 3 over loads could convert all the argument types </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8844): could be 'unsigned <span class="underline">int64 <a class="missing wiki">InterlockedIncrement</a>(volatile unsigned </span>int64 *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8833): or 'unsigned long <a class="missing wiki">InterlockedIncrement</a>(volatile unsigned long *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8824): or 'unsigned int <a class="missing wiki">InterlockedIncrement</a>(volatile unsigned int *)' while trying to match the argument list '(long *)' </p> </blockquote> <p> &lt;build-dir&gt;\vc120-mt-gd-6_5-x64\include\boost/asio/detail/impl/winsock_init.ipp(40) : error C2665: '<a class="missing wiki">InterlockedExchange</a>' : none of the 3 overl oads could convert all the argument types </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8910): could be 'unsigned <span class="underline">int64 <a class="missing wiki">InterlockedExchange</a>(volatile unsigned </span>int64 *,unsigned </p> </blockquote> <p> <span class="underline">int64)' </span></p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8898): or 'unsigned long <a class="missing wiki">InterlockedExchange</a>(volatile unsigned long *,unsigned long)' </p> </blockquote> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8888): or 'unsigned int <a class="missing wiki">InterlockedExchange</a>(volatile unsigned int *,unsigned int)' while trying to match the argument list '(long *, long)' </p> </blockquote> <p> &lt;build-dir&gt;\vc120-mt-gd-6_5-x64\include\boost/asio/detail/impl/winsock_init.ipp(46) : error C2665: '<a class="missing wiki">InterlockedIncrement</a>' : none of the 3 over loads could convert all the argument types </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8844): could be 'unsigned <span class="underline">int64 <a class="missing wiki">InterlockedIncrement</a>(volatile unsigned </span>int64 *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8833): or 'unsigned long <a class="missing wiki">InterlockedIncrement</a>(volatile unsigned long *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8824): or 'unsigned int <a class="missing wiki">InterlockedIncrement</a>(volatile unsigned int *)' while trying to match the argument list '(long *)' </p> </blockquote> <p> &lt;build-dir&gt;\vc120-mt-gd-6_5-x64\include\boost/asio/detail/impl/winsock_init.ipp(48) : error C2665: '<a class="missing wiki">InterlockedExchange</a>' : none of the 3 overl oads could convert all the argument types </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8910): could be 'unsigned <span class="underline">int64 <a class="missing wiki">InterlockedExchange</a>(volatile unsigned </span>int64 *,unsigned </p> </blockquote> <p> <span class="underline">int64)' </span></p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8898): or 'unsigned long <a class="missing wiki">InterlockedExchange</a>(volatile unsigned long *,unsigned long)' </p> </blockquote> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8888): or 'unsigned int <a class="missing wiki">InterlockedExchange</a>(volatile unsigned int *,unsigned int)' while trying to match the argument list '(long *, int)' </p> </blockquote> <p> &lt;build-dir&gt;\vc120-mt-gd-6_5-x64\include\boost/asio/detail/impl/winsock_init.ipp(54) : error C2665: '<a class="missing wiki">InterlockedDecrement</a>' : none of the 3 over loads could convert all the argument types </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8875): could be 'unsigned <span class="underline">int64 <a class="missing wiki">InterlockedDecrement</a>(volatile unsigned </span>int64 *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8864): or 'unsigned long <a class="missing wiki">InterlockedDecrement</a>(volatile unsigned long *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8855): or 'unsigned int <a class="missing wiki">InterlockedDecrement</a>(volatile unsigned int *)' while trying to match the argument list '(long *)' </p> </blockquote> <p> &lt;build-dir&gt;\vc120-mt-gd-6_5-x64\include\boost/asio/detail/impl/winsock_init.ipp(62) : error C2665: '<a class="missing wiki">InterlockedDecrement</a>' : none of the 3 over loads could convert all the argument types </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8875): could be 'unsigned <span class="underline">int64 <a class="missing wiki">InterlockedDecrement</a>(volatile unsigned </span>int64 *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8864): or 'unsigned long <a class="missing wiki">InterlockedDecrement</a>(volatile unsigned long *)' C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8855): or 'unsigned int <a class="missing wiki">InterlockedDecrement</a>(volatile unsigned int *)' while trying to match the argument list '(long *)' </p> </blockquote> <p> &lt;build-dir&gt;\vc120-mt-gd-6_5-x64\include\boost/asio/detail/impl/winsock_init.ipp(67) : error C2665: '<a class="missing wiki">InterlockedExchangeAdd</a>' : none of the 3 ov erloads could convert all the argument types </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8964): could be 'unsigned <span class="underline">int64 <a class="missing wiki">InterlockedExchangeAdd</a>(volatile unsigned </span>int64 *,unsign </p> </blockquote> <p> ed <span class="underline">int64)' </span></p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8942): or 'unsigned long <a class="missing wiki">InterlockedExchangeAdd</a>(volatile unsigned long *,unsigned lon </p> </blockquote> <p> g)' </p> <blockquote> <p> C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8922): or 'unsigned int <a class="missing wiki">InterlockedExchangeAdd</a>(volatile unsigned int *,unsigned int)' </p> </blockquote> <blockquote> <p> while trying to match the argument list '(long *, int)' </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11002 Trac 1.4.3