Skip to content

Windows internal compile error with URDL and Boost 1.57 #3

@BobBrownConsulting

Description

@BobBrownConsulting

I'm trying to use URDL from the latest version on Windows in conjunction with Boost 1.57.

When I compile using Visual Studio 2013 I get the following errors...

1>c:\urdl-0.1\include\urdl\detail\file_read_stream.hpp(98): warning C4244: '=' : conversion from 'std::streamsize' to 'size_t', possible loss of data 1> c:\urdl-0.1\include\urdl\detail\file_read_stream.hpp(113) : see reference to function template instantiation 'size_t urdl::detail::file_read_stream::read_some(const MutableBufferSequence &,boost::system::error_code &)' being compiled 1> with 1> [ 1> MutableBufferSequence=boost::asio::mutable_buffers_1 1> ] 1> c:\urdl-0.1\include\urdl\read_stream.hpp(673) : see reference to function template instantiation 'void urdl::detail::file_read_stream::async_read_some(const MutableBufferSequence &,Handler)' being compiled 1> with 1> [ 1> MutableBufferSequence=boost::asio::mutable_buffers_1 1> , Handler=real_handler_type 1> ] 1> c:\urdl-0.1\include\urdl\impl\istreambuf.ipp(201) : see reference to function template instantiation 'boost::asio::async_result::type urdl::read_stream::async_read_someboost::asio::mutable_buffers_1,urdl::detail::istreambuf_read_handler(const MutableBufferSequence &,Handler)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_read_handler 1> , MutableBufferSequence=boost::asio::mutable_buffers_1 1> ] 1>c:\urdl-0.1\include\urdl\detail\http_read_stream.hpp(451): warning C4244: '+=' : conversion from 'std::streamsize' to 'size_t', possible loss of data 1> c:\urdl-0.1\include\urdl\detail\http_read_stream.hpp(522) : see reference to function template instantiation 'size_t urdl::detail::http_read_streamboost::asio::ip::tcp::socket::read_some(const MutableBufferSequence &,boost::system::error_code &)' being compiled 1> with 1> [ 1> MutableBufferSequence=boost::asio::mutable_buffers_1 1> ] 1> c:\urdl-0.1\include\urdl\detail\http_read_stream.hpp(522) : see reference to function template instantiation 'size_t urdl::detail::http_read_streamboost::asio::ip::tcp::socket::read_some(const MutableBufferSequence &,boost::system::error_code &)' being compiled 1> with 1> [ 1> MutableBufferSequence=boost::asio::mutable_buffers_1 1> ] 1> c:\urdl-0.1\include\urdl\read_stream.hpp(676) : see reference to function template instantiation 'void urdl::detail::http_read_streamboost::asio::ip::tcp::socket::async_read_some(const MutableBufferSequence &,Handler)' being compiled 1> with 1> [ 1> MutableBufferSequence=boost::asio::mutable_buffers_1 1> , Handler=real_handler_type 1> ] 1> c:\urdl-0.1\include\urdl\read_stream.hpp(676) : see reference to function template instantiation 'void urdl::detail::http_read_streamboost::asio::ip::tcp::socket::async_read_some(const MutableBufferSequence &,Handler)' being compiled 1> with 1> [ 1> MutableBufferSequence=boost::asio::mutable_buffers_1 1> , Handler=real_handler_type 1> ] 1>c:\boost_1_57_0\boost\asio\detail\handler_invoke_helpers.hpp(37): fatal error C1001: An internal error has occurred in the compiler. 1> (compiler file 'msc1.cpp', line 1325) 1> To work around this problem, try simplifying or changing the program near the locations listed above. 1> Please choose the Technical Support command on the Visual C++ 1> Help menu, or open the Technical Support help file for more information 1> c:\boost_1_57_0\boost\asio\detail\wait_handler.hpp(70) : see reference to function template instantiation 'void boost_asio_handler_invoke_helpers::invokeboost::asio::detail::binder1(Function &,Context &)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> , Function=boost::asio::detail::binder1urdl::detail::istreambuf_timeout_handler,boost::system::error_code 1> , Context=urdl::detail::istreambuf_timeout_handler 1> ] 1> c:\boost_1_57_0\boost\asio\detail\wait_handler.hpp(47) : while compiling class template member function 'void boost::asio::detail::wait_handler::do_complete(boost::asio::detail::io_service_impl *,boost::asio::detail::operation *,const boost::system::error_code &,size_t)' 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> ] 1> c:\boost_1_57_0\boost\asio\detail\wait_handler.hpp(41) : see reference to function template instantiation 'void boost::asio::detail::wait_handler::do_complete(boost::asio::detail::io_service_impl *,boost::asio::detail::operation *,const boost::system::error_code &,size_t)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> ] 1> c:\boost_1_57_0\boost\asio\detail\deadline_timer_service.hpp(183) : see reference to class template instantiation 'boost::asio::detail::wait_handler' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> ] 1> c:\boost_1_57_0\boost\asio\deadline_timer_service.hpp(149) : see reference to function template instantiation 'void boost::asio::detail::deadline_timer_serviceboost::asio::time_traits::async_waiturdl::detail::istreambuf_timeout_handler(boost::asio::detail::deadline_timer_serviceboost::asio::time_traits::implementation_type &,Handler &)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> ] 1> c:\boost_1_57_0\boost\asio\deadline_timer_service.hpp(149) : see reference to function template instantiation 'void boost::asio::detail::deadline_timer_serviceboost::asio::time_traits::async_waiturdl::detail::istreambuf_timeout_handler(boost::asio::detail::deadline_timer_serviceboost::asio::time_traits::implementation_type &,Handler &)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> ] 1> c:\boost_1_57_0\boost\asio\basic_deadline_timer.hpp(508) : see reference to function template instantiation 'boost::asio::async_result::type boost::asio::deadline_timer_service::async_waiturdl::detail::istreambuf_timeout_handler&(boost::asio::detail::deadline_timer_serviceboost::asio::time_traits::implementation_type &,WaitHandler)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> , Time=boost::posix_time::ptime 1> , TimeTraits=boost::asio::time_traitsboost::posix_time::ptime 1> , WaitHandler=urdl::detail::istreambuf_timeout_handler & 1> ] 1> c:\boost_1_57_0\boost\asio\basic_deadline_timer.hpp(508) : see reference to function template instantiation 'boost::asio::async_result::type boost::asio::deadline_timer_service::async_waiturdl::detail::istreambuf_timeout_handler&(boost::asio::detail::deadline_timer_serviceboost::asio::time_traits::implementation_type &,WaitHandler)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> , Time=boost::posix_time::ptime 1> , TimeTraits=boost::asio::time_traitsboost::posix_time::ptime 1> , WaitHandler=urdl::detail::istreambuf_timeout_handler & 1> ] 1> c:\urdl-0.1\include\urdl\impl\istreambuf.ipp(126) : see reference to function template instantiation 'boost::asio::async_result::type boost::asio::basic_deadline_timerboost::posix_time::ptime,boost::asio::time_traits>::async_waiturdl::detail::istreambuf_timeout_handler&(WaitHandler)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> , Time=boost::posix_time::ptime 1> , TimeTraits=boost::asio::time_traitsboost::posix_time::ptime 1> , WaitHandler=urdl::detail::istreambuf_timeout_handler & 1> ] 1> c:\urdl-0.1\include\urdl\impl\istreambuf.ipp(126) : see reference to function template instantiation 'boost::asio::async_result::type boost::asio::basic_deadline_timerboost::posix_time::ptime,boost::asio::time_traits>::async_waiturdl::detail::istreambuf_timeout_handler&(WaitHandler)' being compiled 1> with 1> [ 1> Handler=urdl::detail::istreambuf_timeout_handler 1> , Time=boost::posix_time::ptime 1> , TimeTraits=boost::asio::time_traitsboost::posix_time::ptime 1> , WaitHandler=urdl::detail::istreambuf_timeout_handler & 1> ] 1> INTERNAL COMPILER ERROR in 'C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe' 1> Please choose the Technical Support command on the Visual C++ 1> Help menu, or open the Technical Support help file for more information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions