
Hi, I have tried using boost 1_33_1 on HP UX machine, while compiling the program I am getting some errors. Can anybody help me out? The detail of the compilation is as follows: Boost Version: 1_33_1 bjam install -sTOOLS=acc --prefix="/home/pthakre/boost" --builddir="/tmp" \ "-sBUILD=release <runtime-link>dynamic/static <threading>multi <cxxflags>+DD64 <cflags>+DD64 <linkflags>+DD64" --without-python Jamfile Compiler Details: aCC: HP C/aC++ B3910B A.06.13 [Nov 27 2006] OS Details: HP-UX B.11.23 ia64 While compiling "daytime_server.cpp" with -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED, I am getting the following error: "boost-1_33_1/include/boost/asio/detail/socket_types.hpp", line 136: error #2020: identifier "ip_mreq" is undefined typedef ip_mreq in4_mreq_type; Also, from /usr/include/netinet/in.h #ifndef _XOPEN_SOURCE_EXTENDED /* * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. */ struct ip_mreq { struct in_addr imr_multiaddr; /* IP multicast address of group */ struct in_addr imr_interface; /* local IP address of interface */ }; #endif /* ! _XOPEN_SOURCE_EXTENDED */ Compiling "daytime_server.cpp" without -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED, I m getting 22 errors. I have done the following changes: Line 575 ./asio/detail/socket_ops.hpp: #if defined(BOOST_WINDOWS) || defined(__CYGWIN__) || defined(__hpux) Line 611 ./asio/detail/socket_ops.hpp: #if defined(BOOST_WINDOWS) || defined(__CYGWIN__) || defined(__hpux) Line 274 ./asio/error.hpp: #if defined(__sun) || defined(__QNX__) || defined(__hpux) Line 109 ./asio/system_exception.hpp: #elif defined(__sun) || defined(__QNX__) || defined(__hpux) Regards, Gaurav