Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client_test.cpp: In function ‘int peer_index(boost::asio::ip::tcp::endpoint, const std::vector<libtorrent::peer_info>&)’:
- client_test.cpp:325:24: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , peers.end(), bind(&peer_info::ip, _1) == addr);
- ^
- client_test.cpp: In function ‘void print_peer_info(std::string&, const std::vector<libtorrent::peer_info>&)’:
- client_test.cpp:354:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:354:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
- ^
- client_test.cpp:354:42: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
- ^
- client_test.cpp:354:66: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
- ^
- client_test.cpp:360:47: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- snprintf(str, sizeof(str), "%-22s:%-5d ", i->ip.address().to_string(ec).c_str(), i->ip.port());
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:360:86: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- snprintf(str, sizeof(str), "%-22s:%-5d ", i->ip.address().to_string(ec).c_str(), i->ip.port());
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:368:42: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- snprintf(str, sizeof(str), "%-42s ", i->inet_as_name.c_str());
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:375:29: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , esc("32"), add_suffix(i->down_speed, "/s").c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:376:18: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , add_suffix(i->total_download).c_str(), add_suffix(i->download_rate_peak, "/s").c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:376:57: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , add_suffix(i->total_download).c_str(), add_suffix(i->download_rate_peak, "/s").c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:377:29: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , esc("31"), add_suffix(i->up_speed, "/s").c_str(), add_suffix(i->total_upload).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:377:68: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , esc("31"), add_suffix(i->up_speed, "/s").c_str(), add_suffix(i->total_upload).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:378:18: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , add_suffix(i->upload_rate_peak, "/s").c_str(), esc("0")
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:380:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->download_queue_length
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:381:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->target_dl_queue_length
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:382:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->upload_queue_length
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:384:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::interesting)?'I':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:384:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::interesting)?'I':'.'
- ^
- client_test.cpp:385:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::choked)?'C':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:385:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::choked)?'C':'.'
- ^
- client_test.cpp:386:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::remote_interested)?'i':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:386:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::remote_interested)?'i':'.'
- ^
- client_test.cpp:387:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::remote_choked)?'c':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:387:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::remote_choked)?'c':'.'
- ^
- client_test.cpp:388:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::supports_extensions)?'e':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:388:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::supports_extensions)?'e':'.'
- ^
- client_test.cpp:389:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::local_connection)?'l':'r'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:389:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::local_connection)?'l':'r'
- ^
- client_test.cpp:390:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::seed)?'s':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:390:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::seed)?'s':'.'
- ^
- client_test.cpp:391:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::on_parole)?'p':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:391:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::on_parole)?'p':'.'
- ^
- client_test.cpp:392:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::optimistic_unchoke)?'O':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:392:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::optimistic_unchoke)?'O':'.'
- ^
- client_test.cpp:393:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->read_state == peer_info::bw_limit)?'r':
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:393:24: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->read_state == peer_info::bw_limit)?'r':
- ^
- client_test.cpp:394:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- (i->read_state == peer_info::bw_network)?'R':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:394:23: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- (i->read_state == peer_info::bw_network)?'R':'.'
- ^
- client_test.cpp:395:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->write_state == peer_info::bw_limit)?'w':
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:395:25: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->write_state == peer_info::bw_limit)?'w':
- ^
- client_test.cpp:396:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- (i->write_state == peer_info::bw_network)?'W':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:396:24: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- (i->write_state == peer_info::bw_network)?'W':'.'
- ^
- client_test.cpp:397:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::snubbed)?'S':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:397:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::snubbed)?'S':'.'
- ^
- client_test.cpp:398:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::upload_only)?'U':'D'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:398:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::upload_only)?'U':'D'
- ^
- client_test.cpp:400:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->flags & peer_info::rc4_encrypted)?'E':
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:400:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->flags & peer_info::rc4_encrypted)?'E':
- ^
- client_test.cpp:401:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- (i->flags & peer_info::plaintext_encrypted)?'e':'.'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:401:17: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- (i->flags & peer_info::plaintext_encrypted)?'e':'.'
- ^
- client_test.cpp:405:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->source & peer_info::tracker)?'T':'_'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:405:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->source & peer_info::tracker)?'T':'_'
- ^
- client_test.cpp:406:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->source & peer_info::pex)?'P':'_'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:406:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->source & peer_info::pex)?'P':'_'
- ^
- client_test.cpp:407:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->source & peer_info::dht)?'D':'_'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:407:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->source & peer_info::dht)?'D':'_'
- ^
- client_test.cpp:408:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->source & peer_info::lsd)?'L':'_'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:408:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->source & peer_info::lsd)?'L':'_'
- ^
- client_test.cpp:409:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->source & peer_info::resume_data)?'R':'_'
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:409:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->source & peer_info::resume_data)?'R':'_'
- ^
- client_test.cpp:410:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , (i->source & peer_info::incoming)?'I':'_');
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:410:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- , (i->source & peer_info::incoming)?'I':'_');
- ^
- client_test.cpp:416:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->failcount, i->num_hashfails);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:416:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->failcount, i->num_hashfails);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:422:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->requests_in_buffer, i->used_send_buffer, add_suffix(i->send_buffer_size).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:422:31: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->requests_in_buffer, i->used_send_buffer, add_suffix(i->send_buffer_size).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:422:63: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->requests_in_buffer, i->used_send_buffer, add_suffix(i->send_buffer_size).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:423:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->send_quota, i->used_receive_buffer, add_suffix(i->receive_buffer_size).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:423:23: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->send_quota, i->used_receive_buffer, add_suffix(i->receive_buffer_size).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:423:58: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->send_quota, i->used_receive_buffer, add_suffix(i->receive_buffer_size).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:424:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->queue_bytes);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:430:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , total_seconds(i->last_active)
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:431:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , total_seconds(i->last_request)
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:432:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->request_timeout
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:433:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , total_seconds(i->download_queue_time));
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:437:18: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , add_suffix(i->pending_disk_bytes).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:438:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- , i->rtt);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:443:9: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- if (i->downloading_piece_index >= 0)
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:446:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- i->downloading_progress / float(i->downloading_total), 14);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:446:39: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- i->downloading_progress / float(i->downloading_total), 14);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:455:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- if (i->country[0] == 0)
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:461:41: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- snprintf(str, sizeof(str), " %c%c", i->country[0], i->country[1]);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:461:56: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- snprintf(str, sizeof(str), " %c%c", i->country[0], i->country[1]);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:467:50: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- snprintf(str, sizeof(str), " %s", add_suffix(i->remote_dl_rate, "/s").c_str());
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:472:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- if (i->flags & peer_info::handshake)
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:472:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- if (i->flags & peer_info::handshake)
- ^
- client_test.cpp:479:13: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- else if (i->flags & peer_info::connecting)
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:479:23: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- else if (i->flags & peer_info::connecting)
- ^
- client_test.cpp:486:13: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- else if (i->flags & peer_info::queued)
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp:486:23: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
- else if (i->flags & peer_info::queued)
- ^
- client_test.cpp:496:12: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- out += i->client;
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- client_test.cpp: In function ‘void add_torrent(libtorrent::session&, handles_t&, const string&, float, bool, const boost::filesystem::path&, bool, int, int)’:
- client_test.cpp:544:37: error: ‘load_file’ was not declared in this scope
- if (load_file(filename.c_str(), buf) == 0)
- ^
- client_test.cpp:545:17: error: no match for ‘operator=’ (operand types are ‘std::vector<char>’ and ‘std::vector<char>*’)
- p.resume_data = &buf;
- ^
- client_test.cpp:545:17: note: candidate is:
- In file included from /usr/include/c++/4.8/vector:69:0,
- from /usr/include/boost/filesystem/path_traits.hpp:26,
- from /usr/include/boost/filesystem/path.hpp:25,
- from /usr/include/boost/filesystem/operations.hpp:25,
- from client_test.cpp:41:
- /usr/include/c++/4.8/bits/vector.tcc:160:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = char; _Alloc = std::allocator<char>]
- vector<_Tp, _Alloc>::
- ^
- /usr/include/c++/4.8/bits/vector.tcc:160:5: note: no known conversion for argument 1 from ‘std::vector<char>*’ to ‘const std::vector<char>&’
- client_test.cpp:548:14: error: no match for ‘operator=’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘const boost::filesystem::path’)
- p.save_path = save_path;
- ^
- client_test.cpp:548:14: note: candidates are:
- In file included from /usr/include/c++/4.8/string:52:0,
- from /usr/include/c++/4.8/bits/locale_classes.h:40,
- from /usr/include/c++/4.8/bits/ios_base.h:41,
- from /usr/include/c++/4.8/ios:42,
- from /usr/include/c++/4.8/ostream:38,
- from /usr/include/c++/4.8/iterator:64,
- from client_test.cpp:33:
- /usr/include/c++/4.8/bits/basic_string.h:546:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(const basic_string& __str)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:546:7: note: no known conversion for argument 1 from ‘const boost::filesystem::path’ to ‘const std::basic_string<char>&’
- /usr/include/c++/4.8/bits/basic_string.h:554:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(const _CharT* __s)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:554:7: note: no known conversion for argument 1 from ‘const boost::filesystem::path’ to ‘const char*’
- /usr/include/c++/4.8/bits/basic_string.h:565:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(_CharT __c)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:565:7: note: no known conversion for argument 1 from ‘const boost::filesystem::path’ to ‘char’
- client_test.cpp:560:29: warning: ‘void libtorrent::torrent_handle::set_ratio(float) const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:856) [-Wdeprecated-declarations]
- h.set_ratio(preferred_ratio);
- ^
- client_test.cpp: In function ‘int save_file(const boost::filesystem::path&, std::vector<char>&)’:
- client_test.cpp:668:44: error: no matching function for call to ‘libtorrent::file::open(const boost::filesystem::path&, libtorrent::file::open_mode_t, boost::system::error_code&)’
- if (!f.open(filename, file::write_only, ec)) return -1;
- ^
- client_test.cpp:668:44: note: candidate is:
- In file included from /usr/local/include/libtorrent/storage.hpp:60:0,
- from /usr/local/include/libtorrent/torrent_handle.hpp:58,
- from /usr/local/include/libtorrent/session.hpp:50,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/file.hpp:263:8: note: bool libtorrent::file::open(const string&, int, boost::system::error_code&)
- bool open(std::string const& p, int m, error_code& ec);
- ^
- /usr/local/include/libtorrent/file.hpp:263:8: note: no known conversion for argument 1 from ‘const boost::filesystem::path’ to ‘const string& {aka const std::basic_string<char>&}’
- client_test.cpp: In function ‘void handle_alert(libtorrent::session&, libtorrent::alert*, const handles_t&)’:
- client_test.cpp:700:26: warning: ‘std::string libtorrent::torrent_handle::save_path() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:830) [-Wdeprecated-declarations]
- save_file(h.save_path() / (h.name() + ".resume"), out);
- ^
- client_test.cpp:700:38: warning: ‘std::string libtorrent::torrent_handle::name() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:838) [-Wdeprecated-declarations]
- save_file(h.save_path() / (h.name() + ".resume"), out);
- ^
- client_test.cpp:700:28: error: no match for ‘operator/’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘std::basic_string<char>’)
- save_file(h.save_path() / (h.name() + ".resume"), out);
- ^
- client_test.cpp: In function ‘int main(int, char**)’:
- client_test.cpp:785:32: error: ‘load_file’ was not declared in this scope
- if (load_file(".ses_state", in) == 0)
- ^
- client_test.cpp:787:47: warning: ‘void libtorrent::session::load_state(const libtorrent::entry&)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:655) [-Wdeprecated-declarations]
- ses.load_state(bdecode(in.begin(), in.end()));
- ^
- client_test.cpp:800:32: error: ‘load_file’ was not declared in this scope
- if (load_file(".dht_state", in) == 0)
- ^
- client_test.cpp:802:46: warning: ‘void libtorrent::session::start_dht(const libtorrent::entry&)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:573) [-Wdeprecated-declarations]
- ses.start_dht(bdecode(in.begin(), in.end()));
- ^
- client_test.cpp:833:17: error: no match for ‘operator=’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘boost::filesystem::path’)
- p.save_path = save_path;
- ^
- client_test.cpp:833:17: note: candidates are:
- In file included from /usr/include/c++/4.8/string:52:0,
- from /usr/include/c++/4.8/bits/locale_classes.h:40,
- from /usr/include/c++/4.8/bits/ios_base.h:41,
- from /usr/include/c++/4.8/ios:42,
- from /usr/include/c++/4.8/ostream:38,
- from /usr/include/c++/4.8/iterator:64,
- from client_test.cpp:33:
- /usr/include/c++/4.8/bits/basic_string.h:546:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(const basic_string& __str)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:546:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘const std::basic_string<char>&’
- /usr/include/c++/4.8/bits/basic_string.h:554:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(const _CharT* __s)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:554:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘const char*’
- /usr/include/c++/4.8/bits/basic_string.h:565:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(_CharT __c)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:565:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘char’
- client_test.cpp:838:58: warning: ‘libtorrent::torrent_handle libtorrent::add_magnet_uri(libtorrent::session&, const string&, libtorrent::add_torrent_params, boost::system::error_code&)’ is deprecated (declared at /usr/local/include/libtorrent/magnet_uri.hpp:73) [-Wdeprecated-declarations]
- torrent_handle h = add_magnet_uri(ses, argv[i], p, ec);
- ^
- client_test.cpp:849:32: warning: ‘void libtorrent::torrent_handle::set_ratio(float) const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:856) [-Wdeprecated-declarations]
- h.set_ratio(preferred_ratio);
- ^
- client_test.cpp:866:17: error: no match for ‘operator=’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘boost::filesystem::path’)
- p.save_path = save_path;
- ^
- client_test.cpp:866:17: note: candidates are:
- In file included from /usr/include/c++/4.8/string:52:0,
- from /usr/include/c++/4.8/bits/locale_classes.h:40,
- from /usr/include/c++/4.8/bits/ios_base.h:41,
- from /usr/include/c++/4.8/ios:42,
- from /usr/include/c++/4.8/ostream:38,
- from /usr/include/c++/4.8/iterator:64,
- from client_test.cpp:33:
- /usr/include/c++/4.8/bits/basic_string.h:546:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(const basic_string& __str)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:546:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘const std::basic_string<char>&’
- /usr/include/c++/4.8/bits/basic_string.h:554:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(const _CharT* __s)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:554:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘const char*’
- /usr/include/c++/4.8/bits/basic_string.h:565:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
- operator=(_CharT __c)
- ^
- /usr/include/c++/4.8/bits/basic_string.h:565:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘char’
- client_test.cpp:884:32: warning: ‘void libtorrent::torrent_handle::set_ratio(float) const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:856) [-Wdeprecated-declarations]
- h.set_ratio(preferred_ratio);
- ^
- client_test.cpp:903:57: warning: ‘void libtorrent::session::set_max_half_open_connections(int)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:911) [-Wdeprecated-declarations]
- case 'o': ses.set_max_half_open_connections(atoi(arg)); break;
- ^
- client_test.cpp:909:58: warning: ‘void libtorrent::session::set_download_rate_limit(int)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:905) [-Wdeprecated-declarations]
- case 'd': ses.set_download_rate_limit(atoi(arg) * 1000); break;
- ^
- client_test.cpp:910:56: warning: ‘void libtorrent::session::set_upload_rate_limit(int)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:903) [-Wdeprecated-declarations]
- case 'u': ses.set_upload_rate_limit(atoi(arg) * 1000); break;
- ^
- client_test.cpp:911:43: warning: ‘void libtorrent::session::set_max_uploads(int)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:907) [-Wdeprecated-declarations]
- case 'S': ses.set_max_uploads(atoi(arg)); break;
- ^
- client_test.cpp:951:47: warning: ‘void libtorrent::session::set_max_connections(int)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:909) [-Wdeprecated-declarations]
- case 'c': ses.set_max_connections(atoi(arg)); break;
- ^
- client_test.cpp:958:30: warning: ‘bool libtorrent::session::listen_on(const std::pair<int, int>&, const char*, int)’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:782) [-Wdeprecated-declarations]
- , bind_to_interface.c_str());
- ^
- client_test.cpp:1014:49: warning: ‘std::string libtorrent::torrent_handle::name() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:838) [-Wdeprecated-declarations]
- FILE* f = fopen(("peers_" + i->second.name()).c_str(), "w+");
- ^
- client_test.cpp:1019:45: error: invalid use of incomplete type ‘struct libtorrent::peer_list_entry’
- fprintf(f, "%s\t%d\n", print_address(k->ip.address()).c_str()
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘struct libtorrent::peer_list_entry’
- struct peer_list_entry;
- ^
- client_test.cpp:1019:59: error: ‘print_address’ was not declared in this scope
- fprintf(f, "%s\t%d\n", print_address(k->ip.address()).c_str()
- ^
- client_test.cpp:1021:25: error: invalid use of incomplete type ‘struct libtorrent::peer_list_entry’
- , ses.as_for_ip(k->ip.address())
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘struct libtorrent::peer_list_entry’
- struct peer_list_entry;
- ^
- client_test.cpp:1041:22: warning: ‘bool libtorrent::torrent_handle::is_paused() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:864) [-Wdeprecated-declarations]
- if (h.is_paused()) continue;
- ^
- client_test.cpp:1042:26: warning: ‘bool libtorrent::torrent_handle::has_metadata() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:870) [-Wdeprecated-declarations]
- if (!h.has_metadata()) continue;
- ^
- client_test.cpp:1044:51: warning: ‘std::string libtorrent::torrent_handle::name() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:838) [-Wdeprecated-declarations]
- printf("saving resume data for %s\n", h.name().c_str());
- ^
- client_test.cpp:1082:28: warning: ‘std::string libtorrent::torrent_handle::save_path() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:830) [-Wdeprecated-declarations]
- save_file(h.save_path() / (h.name() + ".resume"), out);
- ^
- client_test.cpp:1082:40: warning: ‘std::string libtorrent::torrent_handle::name() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:838) [-Wdeprecated-declarations]
- save_file(h.save_path() / (h.name() + ".resume"), out);
- ^
- client_test.cpp:1082:30: error: no match for ‘operator/’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘std::basic_string<char>’)
- save_file(h.save_path() / (h.name() + ".resume"), out);
- ^
- client_test.cpp:1102:75: warning: ‘bool libtorrent::torrent_handle::is_sequential_download() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:868) [-Wdeprecated-declarations]
- if (h.is_valid()) h.set_sequential_download(!h.is_sequential_download());
- ^
- client_test.cpp:1116:29: warning: ‘bool libtorrent::torrent_handle::is_auto_managed() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:866) [-Wdeprecated-declarations]
- if (!h.is_auto_managed() && h.is_paused())
- ^
- client_test.cpp:1116:46: warning: ‘bool libtorrent::torrent_handle::is_paused() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:864) [-Wdeprecated-declarations]
- if (!h.is_auto_managed() && h.is_paused())
- ^
- client_test.cpp:1234:20: warning: ‘bool libtorrent::torrent_handle::is_paused() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:864) [-Wdeprecated-declarations]
- if (h.is_paused()) out += esc("34");
- ^
- client_test.cpp:1237:30: warning: ‘std::string libtorrent::torrent_handle::name() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:838) [-Wdeprecated-declarations]
- std::string name = h.name();
- ^
- client_test.cpp:1244:30: warning: ‘bool libtorrent::torrent_handle::is_paused() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:864) [-Wdeprecated-declarations]
- bool paused = h.is_paused();
- ^
- client_test.cpp:1245:42: warning: ‘bool libtorrent::torrent_handle::is_auto_managed() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:866) [-Wdeprecated-declarations]
- bool auto_managed = h.is_auto_managed();
- ^
- client_test.cpp:1246:56: warning: ‘bool libtorrent::torrent_handle::is_sequential_download() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:868) [-Wdeprecated-declarations]
- bool sequential_download = h.is_sequential_download();
- ^
- client_test.cpp:1361:59: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 13 has type ‘libtorrent::size_type {aka long int}’ [-Wformat=]
- , add_suffix(cs.total_used_buffers * 16 * 1024).c_str());
- ^
- client_test.cpp:1361:59: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 13 has type ‘libtorrent::size_type {aka long int}’ [-Wformat=]
- client_test.cpp:1393:18: warning: ‘std::string libtorrent::torrent_handle::name() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:838) [-Wdeprecated-declarations]
- out += h.name();
- ^
- client_test.cpp:1514:23: warning: ‘bool libtorrent::torrent_handle::has_metadata() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:870) [-Wdeprecated-declarations]
- && h.has_metadata())
- ^
- client_test.cpp:1518:51: warning: ‘const libtorrent::torrent_info& libtorrent::torrent_handle::get_torrent_info() const’ is deprecated (declared at /usr/local/include/libtorrent/torrent_handle.hpp:842) [-Wdeprecated-declarations]
- torrent_info const& info = h.get_torrent_info();
- ^
- client_test.cpp:1534:30: error: ‘std::string’ has no member named ‘leaf’
- , info.file_at(i).path.leaf().c_str()
- ^
- client_test.cpp:1569:35: warning: ‘libtorrent::entry libtorrent::session::state() const’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:657) [-Wdeprecated-declarations]
- entry session_state = ses.state();
- ^
- client_test.cpp:1578:34: warning: ‘libtorrent::entry libtorrent::session::dht_state() const’ is deprecated (declared at /usr/local/include/libtorrent/session.hpp:571) [-Wdeprecated-declarations]
- entry dht_state = ses.dht_state();
- ^
- In file included from /usr/include/c++/4.8/iterator:63:0,
- from client_test.cpp:33:
- /usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of ‘typename __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type __gnu_cxx::operator-(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&) [with _Iterator = const libtorrent::peer_info*; _Container = std::vector<libtorrent::peer_info>; typename __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type = long int]’:
- client_test.cpp:328:25: required from here
- /usr/include/c++/4.8/bits/stl_iterator.h:898:27: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
- { return __lhs.base() - __rhs.base(); }
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
- struct peer_info;
- ^
- In file included from /usr/include/c++/4.8/iterator:63:0,
- from client_test.cpp:33:
- /usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of ‘__gnu_cxx::__normal_iterator<_Iterator, _Container>& __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++() [with _Iterator = const libtorrent::peer_info*; _Container = std::vector<libtorrent::peer_info>]’:
- client_test.cpp:352:23: required from here
- /usr/include/c++/4.8/bits/stl_iterator.h:748:2: error: cannot increment a pointer to incomplete type ‘const libtorrent::peer_info’
- ++_M_current;
- ^
- /usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of ‘__gnu_cxx::__normal_iterator<_Iterator, _Container>& __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++() [with _Iterator = libtorrent::peer_list_entry*; _Container = std::vector<libtorrent::peer_list_entry>]’:
- client_test.cpp:1017:39: required from here
- /usr/include/c++/4.8/bits/stl_iterator.h:748:2: error: cannot increment a pointer to incomplete type ‘libtorrent::peer_list_entry’
- In file included from /usr/include/c++/4.8/vector:64:0,
- from /usr/include/boost/filesystem/path_traits.hpp:26,
- from /usr/include/boost/filesystem/path.hpp:25,
- from /usr/include/boost/filesystem/operations.hpp:25,
- from client_test.cpp:41:
- /usr/include/c++/4.8/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = libtorrent::peer_info; _Alloc = std::allocator<libtorrent::peer_info>]’:
- /usr/include/c++/4.8/bits/stl_vector.h:249:15: required from ‘std::vector<_Tp, _Alloc>::vector() [with _Tp = libtorrent::peer_info; _Alloc = std::allocator<libtorrent::peer_info>]’
- client_test.cpp:963:25: required from here
- /usr/include/c++/4.8/bits/stl_vector.h:161:9: error: invalid use of incomplete type ‘struct libtorrent::peer_info’
- - this->_M_impl._M_start); }
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘struct libtorrent::peer_info’
- struct peer_info;
- ^
- In file included from /usr/include/c++/4.8/vector:64:0,
- from /usr/include/boost/filesystem/path_traits.hpp:26,
- from /usr/include/boost/filesystem/path.hpp:25,
- from /usr/include/boost/filesystem/operations.hpp:25,
- from client_test.cpp:41:
- /usr/include/c++/4.8/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = libtorrent::peer_list_entry; _Alloc = std::allocator<libtorrent::peer_list_entry>]’:
- /usr/include/c++/4.8/bits/stl_vector.h:249:15: required from ‘std::vector<_Tp, _Alloc>::vector() [with _Tp = libtorrent::peer_list_entry; _Alloc = std::allocator<libtorrent::peer_list_entry>]’
- client_test.cpp:1009:34: required from here
- /usr/include/c++/4.8/bits/stl_vector.h:161:9: error: invalid use of incomplete type ‘struct libtorrent::peer_list_entry’
- - this->_M_impl._M_start); }
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘struct libtorrent::peer_list_entry’
- struct peer_list_entry;
- ^
- In file included from /usr/include/c++/4.8/vector:62:0,
- from /usr/include/boost/filesystem/path_traits.hpp:26,
- from /usr/include/boost/filesystem/path.hpp:25,
- from /usr/include/boost/filesystem/operations.hpp:25,
- from client_test.cpp:41:
- /usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = libtorrent::peer_info*]’:
- /usr/include/c++/4.8/bits/stl_construct.h:151:31: required from ‘void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = libtorrent::peer_info*; _Tp = libtorrent::peer_info]’
- /usr/include/c++/4.8/bits/stl_vector.h:416:30: required from ‘std::vector<_Tp, _Alloc>::~vector() [with _Tp = libtorrent::peer_info; _Alloc = std::allocator<libtorrent::peer_info>]’
- client_test.cpp:963:25: required from here
- /usr/include/c++/4.8/bits/stl_construct.h:127:27: error: invalid use of incomplete type ‘_Value_type {aka struct libtorrent::peer_info}’
- __destroy(__first, __last);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘_Value_type {aka struct libtorrent::peer_info}’
- struct peer_info;
- ^
- In file included from /usr/include/c++/4.8/vector:62:0,
- from /usr/include/boost/filesystem/path_traits.hpp:26,
- from /usr/include/boost/filesystem/path.hpp:25,
- from /usr/include/boost/filesystem/operations.hpp:25,
- from client_test.cpp:41:
- /usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = libtorrent::peer_list_entry*]’:
- /usr/include/c++/4.8/bits/stl_construct.h:151:31: required from ‘void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = libtorrent::peer_list_entry*; _Tp = libtorrent::peer_list_entry]’
- /usr/include/c++/4.8/bits/stl_vector.h:416:30: required from ‘std::vector<_Tp, _Alloc>::~vector() [with _Tp = libtorrent::peer_list_entry; _Alloc = std::allocator<libtorrent::peer_list_entry>]’
- client_test.cpp:1009:34: required from here
- /usr/include/c++/4.8/bits/stl_construct.h:127:27: error: invalid use of incomplete type ‘_Value_type {aka struct libtorrent::peer_list_entry}’
- __destroy(__first, __last);
- ^
- In file included from /usr/local/include/libtorrent/session.hpp:50:0,
- from client_test.cpp:56:
- /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘_Value_type {aka struct libtorrent::peer_list_entry}’
- struct peer_list_entry;
- ^
Advertisement
Add Comment
Please, Sign In to add comment