Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Has anyone successfully included <boost/asio.hpp> in Multi-device App?



Permlink Replies: 0 Threads: [ Previous | Next ]
Sean Hoffman

Posts: 126
Registered: 3/28/99
Has anyone successfully included <boost/asio.hpp> in Multi-device App?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 31, 2017 6:47 AM
I created a simple application with a single form with no controls to test, set the output to OSX, and merely includied the <boost/asio.hpp> header and it won't compile. In the case of the 1.55 version of boost it won't compile outright, in the case of the 1.39 version of boost it is missing arpa/inet.h. I waited nearly 5 months for a fix to the "unable to debug on Sierra" errors which blocked me prior, It would be nice to actually build the tool I envisioned to begin with rather than chasing down weird stuff. I'm sure if I spent enough time futzing around with header files and defines I could maybe get it to build, but it would be nice if the version(s) of Boost that ship with the product worked out of the box on the supported platforms.

I've tried including both the included 1.39 Boost:
[bccosx Error] socket_types.hpp(109): E2209 Unable to open include file 'arpa/inet.h'
Full parser context
Main.cpp(7): #include c:\rs10.1\include\boost_1_39\boost/asio.hpp
asio.hpp(20): #include c:\rs10.1\include\boost_1_39\boost/asio/basic_datagram_socket.hpp
basic_datagram_socket.hpp(25): #include c:\rs10.1\include\boost_1_39\boost/asio/basic_socket.hpp
basic_socket.hpp(24): #include c:\rs10.1\include\boost_1_39\boost/asio/basic_io_object.hpp
io_service.hpp(37): #include c:\rs10.1\include\boost_1_39\boost/asio/detail/win_iocp_io_service_fwd.hpp
win_iocp_io_service_fwd.hpp(24): #include c:\rs10.1\include\boost_1_39\boost/asio/detail/socket_types.hpp

...as well as the included 1.55 version of Boost:
"[bccosx Error] result_of_iterate.hpp(129): E2285 Could not find a match for 'declval<T>()'
Full parser context
Main.cpp(7): #include c:\rs10.1\include\boost_1_55\boost/asio.hpp
asio.hpp(21): #include c:\rs10.1\include\boost_1_55\boost/asio/basic_datagram_socket.hpp
basic_datagram_socket.hpp(20): #include c:\rs10.1\include\boost_1_55\boost/asio/basic_socket.hpp
basic_socket.hpp(20): #include c:\rs10.1\include\boost_1_55\boost/asio/basic_io_object.hpp
basic_io_object.hpp(19): #include c:\rs10.1\include\boost_1_55\boost/asio/io_service.hpp
io_service.hpp(24): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/wrapped_handler.hpp
wrapped_handler.hpp(18): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/bind_handler.hpp
bind_handler.hpp(19): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/handler_alloc_helpers.hpp
handler_alloc_helpers.hpp(21): #include c:\rs10.1\include\boost_1_55\boost/asio/handler_alloc_hook.hpp
handler_alloc_hook.hpp(80): #include c:\rs10.1\include\boost_1_55\boost/asio/impl/handler_alloc_hook.ipp
handler_alloc_hook.ipp(19): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/call_stack.hpp
call_stack.hpp(20): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/tss_ptr.hpp
tss_ptr.hpp(27): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/posix_tss_ptr.hpp
posix_tss_ptr.hpp(76): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/impl/posix_tss_ptr.ipp
posix_tss_ptr.ipp(23): #include c:\rs10.1\include\boost_1_55\boost/asio/detail/throw_error.hpp
throw_error.hpp(19): #include c:\rs10.1\include\boost_1_55\boost/system/error_code.hpp
error_code.hpp(23): #include c:\rs10.1\include\boost_1_55\boost\tr1\tr1\functional
functional(27): #include c:\rs10.1\include\boost_1_55\boost/tr1/functional.hpp
functional.hpp(47): #include c:\rs10.1\include\boost_1_55\boost/utility/result_of.hpp
result_of.hpp(66): namespace boost
result_of.hpp(199): #include c:\rs10.1\include\boost_1_55\boost/preprocessor/iteration/detail/iter/forward1.hpp
forward1.hpp(47): #include c:\rs10.1\include\boost_1_55\boost/utility/detail/result_of_iterate.hpp
result_of_iterate.hpp(56): namespace detail
result_of_iterate.hpp(127): class cpp0x_result_of_impl<F(),0>"

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02