草庐IT

SerialPortTest

全部标签

c++ - Boost.Asio 链接错误

我正在尝试通过串行端口访问外部设备,并希望使用Boost.Asio来完成此提议。我已经为MinGw构建了boost库并成功编译了正则表达式示例。但是如果我包含来自Boost.Asio的内容,我在编译代码时会遇到问题:#includeintmain(){return0;}g++-D_WIN32_WINNT=0x0501-O0-g3-Wall-c-fmessage-length=0-osrc\SerialPortTest.o..\src\SerialPortTest.cppg++-LC:\boost-libs\boost\bin.v2\libs\thread\build\gcc-mingw