【发布时间】:2021-08-15 22:23:24
【问题描述】:
我有一个使用蓝牙的 linux 应用程序。我必须将它移植到 Windows。因为我知道从一开始我就选择了boost 来代替epoll。 windows 和 linux 都使用 BSD 套接字进行蓝牙。所以我需要做的就是初始化文件描述符,把它放入boost::posix::stream_descriptor,从那时起我可以同时使用wait_read和wait_write。
但是,编译器说 boost::posix::stream_descriptor 未定义。我可以启用它吗?我正在使用 msys2 来设置 mingw64 工具链和安装 boost。
【问题讨论】:
标签: windows boost-asio