I’m trying to build a program that will be able to read and write to a Serial Port.
At the moment I am using a wrapper class that works with boost::asio.
( http://gitorious.org/serial-port )
I’m getting a bunch of errors from win_object_handle_service.ipp (from boost asio)
The error Message i get is at http://pastebin.com/MtcC61cb
Additionally, in the AsyncSerial.hpp file from the SerialPort Library
I get an error on line 103:
thread t(boost::bind(&asio::io_service::run, &pimpl->io))
There is nothing in the compilers error log, but eclipse reports that:
- boost::bind is ambiguous
- invalid overload of ‘asio::io_service::run’
I’m not sure if the above are valid errors, or if its just eclipse’s indexer being stupid
My Question is:
Can anyone help to figure out why I am getting this error message, and how I can get my program to compile?
I’m also welcome to suggestions for a different Serial library. However I would need it to be cross platform.
I’m running windows 7 x64 compiling with MinGW 4.7.1 (32 bit).
I had this problem compiling the chat_client from the boost examples
it was:
and i changed it to use an explicit cast:
And the compile errors went away