1 Nov 2009 05:27
Re: Is there a way to disable exception in libtorrent?
imin imup <iminimup <at> gmail.com>
2009-11-01 04:27:15 GMT
2009-11-01 04:27:15 GMT
Please excuse my long delay. I'm back to this task now.
When I tried to build libtorrent with BOOST_NO_EXCEPTIONS defined, compile
errors appear:
src/kademlia/dht_tracker.cpp: In member function ‘void
libtorrent::dht::dht_tracker::on_receive(const
boost::asio::ip::basic_endpoint<boost::asio::ip::udp>&, const char*, int)’:
src/kademlia/dht_tracker.cpp:523: error: passing ‘const libtorrent::entry’
as ‘this’ argument of ‘libtorrent::entry&
libtorrent::entry::operator[](const char*)’ discards qualifiers
...
I think the errors are caused by a throw in next lines,
524 if (id.size() != 20) throw std::runtime_error("invalid size of
id");
I'm using is libtorrent 0.14.1 and boost 1.36.0. Could you tell me
which version of libtorrent is ready to be built with exception disabled?
> then build libtorrent with the additional exception-handling=off argument.
>
>
This argument is not documented in
http://www.rasterbar.com/products/libtorrent/building.html.
Should I define the macro BOOST_NO_EXCEPTIONS instead or add
exception-handling=off to bjam as you mentioned?
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
(Continue reading)
RSS Feed