Boost logo

Boost :

Subject: [boost] boost] [asio] /usr/include/sys/uio.h:72: error: `uint16_t' does not name a type
From: Ricard de Benito Panillo (ricardbp_at_[hidden])
Date: 2010-02-18 17:19:13

Hi all,

I have problems including <boost/asio.hpp> in a .h source file on Solaris 10 x86, boost version 1_42. g++ complains as follows:

In file included from /usr/include/sys/socket.h:38,
                 from /usr/local/include/boost/asio/detail/socket_types.hpp:104,
                 from /usr/local/include/boost/asio/detail/win_iocp_io_service_fwd.hpp:24,
                 from /usr/local/include/boost/asio/io_service.hpp:37,
                 from /usr/local/include/boost/asio/basic_io_object.hpp:20,
                 from /usr/local/include/boost/asio/basic_socket.hpp:24,
                 from /usr/local/include/boost/asio/basic_datagram_socket.hpp:25,
                 from /usr/local/include/boost/asio.hpp:20,
                 from POSIX_CommConnection.h:7,
                 from Connector.cpp:2:
/usr/include/sys/uio.h:72: error: `uint16_t' does not name a type

$ uname -a
SunOS unknown0019994802a5 5.10 Generic_141445-09 i86pc i386 i86pc

Has someone managed to include boost::asio?

Best regards,

Ricard de Benito Panillo

Boost list run by bdawes at, gregod at, cpdaniel at, john at