[asio] mingw compile problem
hi all, i'm using asio successfully on both linux and osx. but when compiling via mingw, i get the two compile errors, both are related to const-correctness. problem 1: In file included from /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/detail/win_iocp_serial_port_service.hpp:225, from /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/serial_port_service.hpp:26, from /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/basic_serial_port.hpp:30, from /home/tim/workspace/supercollider/external_libraries/boost/boost/asio.hpp:25, from /home/tim/workspace/supercollider/server/supernova/sc/../server/../sc/../utilities/osc_server.hpp:25, from /home/tim/workspace/supercollider/server/supernova/sc/../server/../sc/sc_osc_handler.hpp:35, from /home/tim/workspace/supercollider/server/supernova/sc/../server/server.hpp:27, from /home/tim/workspace/supercollider/server/supernova/sc/sc_plugin_interface.cpp:31: /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/detail/impl/win_iocp_serial_port_service.ipp: In member function ‘boost::system::error_code boost::asio::detail::win_iocp_serial_port_service::open(boost::asio::detail::win_iocp_handle_service::implementation_type&, const std::string&, boost::system::error_code&)’: /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/detail/impl/win_iocp_serial_port_service.ipp:58: error: invalid conversion from ‘const char*’ to ‘CHAR*’ /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/detail/impl/win_iocp_serial_port_service.ipp:58: error: initializing argument 1 of ‘void* CreateFileA(CHAR*, DWORD, DWORD, _SECURITY_ATTRIBUTES*, DWORD, DWORD, void*)’ problem 2: /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/buffer.hpp: In function ‘PointerToPodType boost::asio::buffer_cast(const boost::asio::const_buffer&) [with PointerToPodType = void*]’: /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/detail/impl/win_iocp_handle_service.ipp:322: instantiated from here /home/tim/workspace/supercollider/external_libraries/boost/boost/asio/buffer.hpp:428: error: invalid static_cast from type ‘const void*’ to type ‘void*’ any idea, how i can work around these issues? thanks, tim
participants (1)
-
Tim Blechmann