Boost logo

Boost Users :

Subject: [Boost-users] Need help when adapting boost 1.59.0 to WinRT
From: Nguyá»…n Trung Duy (trungduy150388_at_[hidden])
Date: 2016-02-19 06:11:59


Dear Boost team,
I need your help with adapting boost 1.59 to WinRT. I am working on boost
and reSIProcate. I built boost and integrated it with reSIProcate project.
However, when build reflow project, I got stuck with bellow bugs. I
wonder with your great experiences, could you please give me some advice.

The error happens at line 96 :

#if defined(BOOST_ASIO_WINDOWS_RUNTIME)

const int max_addr_v4_str_len = 256;

const int max_addr_v6_str_len = 256;

typedef unsigned __int32 u_long_type;

typedef unsigned __int16 u_short_type;

struct in4_addr_type { u_long_type s_addr; }; // error at here

And the logs:

*\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(96): error
C3927: '->': trailing return type is not allowed after a non-function
declarator (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(96):
error C3484: syntax error: expected '->' before the return type (compiling
source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(96):
error C3613: missing return type after '->' ('int' assumed) (compiling
source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(96):
error C3646: 'S_addr': unknown override specifier (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C3927: '->': trailing return type is not allowed after a non-function
declarator (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C3484: syntax error: expected '->' before the return type (compiling
source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C3613: missing return type after '->' ('int' assumed) (compiling
source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C3646: 'Byte': unknown override specifier (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C2143: syntax error: missing ',' before '[' (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C2143: syntax error: missing ')' before ';' (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C2143: syntax error: missing ';' before ')' (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(98):
error C2059: syntax error: ')' (compiling source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/ip/address_v4.hpp(61):
error C2039: 'S_addr': is not a member of 'default::uint32' (compiling
source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/ip/address_v4.hpp(147):
error C2039: 'S_addr': is not a member of 'default::uint32' (compiling
source file
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/ip/address_v4.hpp(153):
error C2039: 'S_addr': is not a member of 'default::uint32' (compiling
source file MediaStream.cxx)*

Thanks you so much!!!!
*--*
*Best Regards,*
*NGUYEN TRUNG DUY*
*Android Developer*

*Mobile*: (+84)977 46 12 23
*Skype :* trungduy150388
*Website*: http://nguyentrungduy.com/
*Blog*: http://dbox.nguyentrungduy.com/
*Github*: https://github.com/nguyentrungduy



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net