Opened 8 years ago

Last modified 8 years ago

#10940 new Bugs

boost:asio/boost::thread does not work on windows 8 store/phone environment

Reported by: sylvain.rochette@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

I have try painfully to build a test app that just use serial class from boos::asio but on windows 8 store\phone, it does not work

c:\boost\boost\asio\detail\impl\win_thread.ipp(81): error C2039: '_beginthreadex' : is not a member of '`global namespace c:\boost\boost\asio\detail\impl\win_thread.ipp(81): error C3861: '_beginthreadex': identifier not found

With store\phone app, MS remove some function search as beginthreadex etc... it will be best that boost::asio use boost::thread or std::thread, but even that boost::thread does not work on windows 8 store app anyway related to the same thing

Change History (1)

comment:1 by anonymous, 8 years ago

Another thing related to this:

If I don't specify #include <winsock2.h> before the asio include #include <winsock2.h> #include <boost/asio.hpp> #include <boost/asio/serial_port.hpp>

I get this instead:

c:\boost\boost\asio\detail\socket_types.hpp(24): fatal error C1189: #error : WinSock.h has already been included

Note: See TracTickets for help on using tickets.