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
AMDG On 02/19/2016 04:11 AM, Nguyễn Trung Duy wrote:
<snip> struct in4_addr_type { u_long_type s_addr; }; // error at here <snip> *\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
That error makes no sense whatsoever, which means that it's probably a wild macro. Check whether any of those names are #defined. It's probably s_addr, given this:
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(96): error C3646: 'S_addr': unknown override specifier
In Christ, Steven Watanabe
Thank you so much, It really worked :)
*--*
*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
On 20 February 2016 at 00:33, Steven Watanabe
AMDG
On 02/19/2016 04:11 AM, Nguyễn Trung Duy wrote:
<snip> struct in4_addr_type { u_long_type s_addr; }; // error at here <snip> *\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
That error makes no sense whatsoever, which means that it's probably a wild macro. Check whether any of those names are #defined. It's probably s_addr, given this:
MediaStream.cxx)\boost-msvc-14.0-store\boost/asio/detail/socket_types.hpp(96):
error C3646: 'S_addr': unknown override specifier
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Nguyễn Trung Duy
-
Steven Watanabe