|
Boost : |
Subject: Re: [boost] boost] [asio] /usr/include/sys/uio.h:72: error: `uint16_t' does not name a type
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-21 23:49:08
AMDG
Ricard de Benito Panillo wrote:
> 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?
>
What happens if you just
#include <sys/socket.h>
In Christ,
Steven Watanabe
P.S. Please don't reply to an existing thread with a new subject.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk