logo       

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

network.bit-torrent.libtorrent

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

Arvid Norberg wrote:
On Apr 24, 2006, at 06:25, Tianhao Qiu wrote:
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'

Ah, that looks like the bug in msvc where it has problems parsing function try blocks. I think adding a semicolon after the catch block may help. GCC is accepting that semicolon as well, I'm not sure one is actually allowed to have one there though.

Maybe you could have a try and let me know if that helped (in that case I will add them and check them into the cvs).

Yes, adding a semicolon after the catch block does fix the problem. Now 0.9.2 can be compiled successfully by msvc 8 except some type conversion warnings.

Do you need a patch against the current cvs? I believe I added four or five semicolons.

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.

Not really. I just keep track of reports from this list and from the irc channel locally.
The list of known bugs is generally short anyway, since I try to fix them as soon as I know about them.

I see. Is there any notable performance/stability improvement in 0.9.2 with the introduction of asio? We are thinking of using libtorrent in our project but we are still not sure which version to choose. We plan to deliver something workable in at most two months. Do you think we should try 0.9.2 or stick with 0.9.1?

Thanks a lot,
--
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