Asio编译器错误(Win7 64位+ VC11)

时间:2012-11-11 19:06:37

标签: c++ visual-studio visual-studio-2012 boost-asio

前几天我从Win7 32Bit + Visual Studio 2008升级到Win7 64Bit + Visual Studio 2012(VC11)。现在我在编译应用程序时遇到问题。我收到以下错误:

1>...\asio-1.5.3\include\asio/detail/impl/win_thread.ipp(51): error C2664: 'QueueUserAPC': cannot convert parameter 1 from 'void (__cdecl *)(ULONG)' to 'PAPCFUNC'
1>...\asio-1.5.3\include\asio/detail/impl/win_iocp_io_service.ipp(119): error C2664: 'GetQueuedCompletionStatus': cannot convert parameter 3 from 'DWORD *' to 'PULONG_PTR'
1>...\asio-1.5.3\include\asio/detail/impl/win_iocp_io_service.ipp(349): error C2664: 'GetQueuedCompletionStatus': cannot convert parameter 3 from 'DWORD *' to 'PULONG_PTR'

我使用最新版本的boost :: asio(Boost 1.52)获得了相同的错误

这里有什么问题?

1 个答案:

答案 0 :(得分:1)

将WINVER设置为0x0501它正在工作 - 非常感谢Hans Passant的暗示!