Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-30-2013, 01:40 PM   #1
Registered: Aug 2012
Distribution: Slackware64-current
Posts: 62

Rep: Reputation: Disabled
hrktorrent with libtorrent-rasterbar-0.16

Hi guys,

I've been trying to compile hrktorrent (0.3.6 ?) against libtorrent-rasterbar-0.16.7 without success.

Here is the story:

hrktorrent (0.3.5) was released few years ago with libtorrent-rb-0.14.x at its core.

A few days ago, I emailed the author if he has a patch in order to make hrktorrent-0.3.5 compliant with either libtorrent-rb-0.15.x or libtorrent-rb-0.16.x.
Unfortunatly, he hasn't answered yet.

I could find a git repo "" where someone has adjusted the code for libtorrent-rb-0.15 but it doesn't work with libtorrent-rb-0.16.

I get this compiling error:

core.cpp:266:21: erreur: no match for ‘operator=’ in ‘parms.libtorrent::add_torrent_params::save_path = p’
core.cpp:266:21: note: candidates are:
In file included from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/string:54:0,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/bits/locale_classes.h:42,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/bits/ios_base.h:43,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/ios:43,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/ostream:40,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../include/c++/4.7.2/iostream:40,
                 from hrktorrent.h:4,
                 from core.cpp:1:
Since I can't program, I can't fix this.

Does anyone has a solution and/or explain why the compilator is complaining ?

Here is where the problem lays

try {
		libtorrent::add_torrent_params parms;

		boost::intrusive_ptr<libtorrent::torrent_info> info = new libtorrent::torrent_info(_argv[_argc-1]);
		boost::filesystem::path p(Settings->GetS("downloaddir"));
		if(!boost::filesystem::exists(p)) {
			std::cerr << "Download directory does not exist/could not be created." << std::endl;
			return EXIT_FAILURE;

		parms.save_path = p;	// here is the line at fault
		parms.ti = info;
		parms.paused = false;

		_torrent = _session->add_torrent(parms);
	} catch(std::exception& e) {
		std::cerr << "Could not add torrent (" << e.what() <<")" << std::endl;
		return EXIT_FAILURE;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Errors with Alien Bob's libtorrent-rasterbar and qbittorrent packages. Daedra Slackware 6 02-27-2011 03:47 AM
Unable to build qBittorrent with libtorrent-rasterbar 0.15.2 and zlib 1.2.5 robertjinx Linux - Software 0 08-31-2010 07:49 AM
./configuring libtorrent Pytheas Linux - Software 6 07-08-2010 02:39 PM
rasterbar's libtorrent compiling a simple_client.cpp vikhr Programming 0 05-25-2008 10:16 PM
rtorrent/libtorrent error truthe Linux - Software 0 06-26-2005 03:41 AM

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration