logo       

Re: Errors when compiling libtorrent-0.9.2-060421.tar.gz: msg#00037

network.bit-torrent.libtorrent

Subject: Re: Errors when compiling libtorrent-0.9.2-060421.tar.gz

Arvid Norberg wrote:
On Apr 23, 2006, at 04:07, Tianhao Qiu wrote:

Hello Arvid and all,

I just downloaded the file http://www.rasterbar.com/products/libtorrent/libtorrent-0.9.2-060421.tar.gz, which I assume is the latest development version of libtorrent based on asio. When I tried to compile it in Visual Studio 2005, I had some strange errors coming out. Following is some snippets:

/Compiling...
[...]

It looks like they are related to the new asio library included. Can someone give me a hint on how to fix this?

Hi. If you take a look in the Jamfile, you'll see that these two symbols are defined when building on msvc:

_WIN32_WINNT=0x0500
WIN32

I took a quick look at the Jamfile and added all the definitions into the project. Now it is reduced to only 12 errors and 12 warnings. I've attached the errors below. They don't make much sense to me. For example I don't see anything wrong with the definition of libtorrent::http_tracker_connection::on_response().

"
1>http_tracker_connection.cpp
1>d:\projects\libtorrent-0.9.2\src\http_tracker_connection.cpp(675) : error C2143: syntax error : missing ';' before 'inline function header'
1>d:\projects\libtorrent-0.9.2\src\http_tracker_connection.cpp(676) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\libtorrent-0.9.2\src\http_tracker_connection.cpp(676) : error C2556: 'int libtorrent::http_tracker_connection::on_response(void)' : overloaded function differs only by return type from 'void libtorrent::http_tracker_connection::on_response(void)'
1> d:\projects\libtorrent-0.9.2\include\libtorrent\http_tracker_connection.hpp(132) : see declaration of 'libtorrent::http_tracker_connection::on_response'
1>d:\projects\libtorrent-0.9.2\src\http_tracker_connection.cpp(676) : error C2371: 'libtorrent::http_tracker_connection::on_response' : redefinition; different basic types
1> d:\projects\libtorrent-0.9.2\include\libtorrent\http_tracker_connection.hpp(132) : see declaration of 'libtorrent::http_tracker_connection::on_response'

......

1>session.cpp
1>d:\projects\libtorrent-0.9.2\src\session.cpp(682) : error C2143: syntax error : missing ';' before 'inline function header'
1>d:\projects\libtorrent-0.9.2\src\session.cpp(683) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\libtorrent-0.9.2\src\session.cpp(683) : error C2556: 'int libtorrent::detail::session_impl::close_connection(const boost::intrusive_ptr<T> &)' : overloaded function differs only by return type from 'void libtorrent::detail::session_impl::close_connection(const boost::intrusive_ptr<T> &)'
1> with
1> [
1> T=libtorrent::peer_connection
1> ]
1> d:\projects\libtorrent-0.9.2\include\libtorrent\session.hpp(235) : see declaration of 'libtorrent::detail::session_impl::close_connection'
1>d:\projects\libtorrent-0.9.2\src\session.cpp(683) : error C2371: 'libtorrent::detail::session_impl::close_connection' : redefinition; different basic types
1> d:\projects\libtorrent-0.9.2\include\libtorrent\session.hpp(235) : see declaration of 'libtorrent::detail::session_impl::close_connection'

......

1>torrent.cpp
1>d:\projects\libtorrent-0.9.2\src\torrent.cpp(955) : error C2143: syntax error : missing ';' before 'inline function header'
1>d:\projects\libtorrent-0.9.2\src\torrent.cpp(956) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\libtorrent-0.9.2\src\torrent.cpp(956) : error C2556: 'int libtorrent::torrent::connect_to_url_seed(const std::string &)' : overloaded function differs only by return type from 'void libtorrent::torrent::connect_to_url_seed(const std::string &)'
1> d:\projects\libtorrent-0.9.2\include\libtorrent\torrent.hpp(178) : see declaration of 'libtorrent::torrent::connect_to_url_seed'
1>d:\projects\libtorrent-0.9.2\src\torrent.cpp(956) : error C2371: 'libtorrent::torrent::connect_to_url_seed' : redefinition; different basic types
1> d:\projects\libtorrent-0.9.2\include\libtorrent\torrent.hpp(178) : see declaration of 'libtorrent::torrent::connect_to_url_seed'

......

"

Is there a release schedule for libtorrent-0.9.2?

As soon as all the known bugs/asserts are fixed. Which should be pretty soon, because there aren't that many.

Is there a bug list somewhere? I've checked the sourceforge and didn't see one.

Thanks,
--
Tianhao


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise