Guest User

Untitled

a guest
Sep 16th, 2014
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.40 KB | None | 0 0
  1. client_test.cpp: In function ‘int peer_index(boost::asio::ip::tcp::endpoint, const std::vector<libtorrent::peer_info>&)’:
  2. client_test.cpp:325:24: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  3. , peers.end(), bind(&peer_info::ip, _1) == addr);
  4. ^
  5. client_test.cpp: In function ‘void print_peer_info(std::string&, const std::vector<libtorrent::peer_info>&)’:
  6. client_test.cpp:354:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  7. if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
  8. ^
  9. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  10. from client_test.cpp:56:
  11. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  12. struct peer_info;
  13. ^
  14. client_test.cpp:354:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  15. if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
  16. ^
  17. client_test.cpp:354:42: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  18. if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
  19. ^
  20. client_test.cpp:354:66: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  21. if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
  22. ^
  23. client_test.cpp:360:47: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  24. snprintf(str, sizeof(str), "%-22s:%-5d ", i->ip.address().to_string(ec).c_str(), i->ip.port());
  25. ^
  26. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  27. from client_test.cpp:56:
  28. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  29. struct peer_info;
  30. ^
  31. client_test.cpp:360:86: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  32. snprintf(str, sizeof(str), "%-22s:%-5d ", i->ip.address().to_string(ec).c_str(), i->ip.port());
  33. ^
  34. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  35. from client_test.cpp:56:
  36. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  37. struct peer_info;
  38. ^
  39. client_test.cpp:368:42: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  40. snprintf(str, sizeof(str), "%-42s ", i->inet_as_name.c_str());
  41. ^
  42. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  43. from client_test.cpp:56:
  44. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  45. struct peer_info;
  46. ^
  47. client_test.cpp:375:29: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  48. , esc("32"), add_suffix(i->down_speed, "/s").c_str()
  49. ^
  50. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  51. from client_test.cpp:56:
  52. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  53. struct peer_info;
  54. ^
  55. client_test.cpp:376:18: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  56. , add_suffix(i->total_download).c_str(), add_suffix(i->download_rate_peak, "/s").c_str()
  57. ^
  58. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  59. from client_test.cpp:56:
  60. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  61. struct peer_info;
  62. ^
  63. client_test.cpp:376:57: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  64. , add_suffix(i->total_download).c_str(), add_suffix(i->download_rate_peak, "/s").c_str()
  65. ^
  66. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  67. from client_test.cpp:56:
  68. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  69. struct peer_info;
  70. ^
  71. client_test.cpp:377:29: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  72. , esc("31"), add_suffix(i->up_speed, "/s").c_str(), add_suffix(i->total_upload).c_str()
  73. ^
  74. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  75. from client_test.cpp:56:
  76. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  77. struct peer_info;
  78. ^
  79. client_test.cpp:377:68: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  80. , esc("31"), add_suffix(i->up_speed, "/s").c_str(), add_suffix(i->total_upload).c_str()
  81. ^
  82. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  83. from client_test.cpp:56:
  84. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  85. struct peer_info;
  86. ^
  87. client_test.cpp:378:18: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  88. , add_suffix(i->upload_rate_peak, "/s").c_str(), esc("0")
  89. ^
  90. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  91. from client_test.cpp:56:
  92. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  93. struct peer_info;
  94. ^
  95. client_test.cpp:380:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  96. , i->download_queue_length
  97. ^
  98. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  99. from client_test.cpp:56:
  100. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  101. struct peer_info;
  102. ^
  103. client_test.cpp:381:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  104. , i->target_dl_queue_length
  105. ^
  106. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  107. from client_test.cpp:56:
  108. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  109. struct peer_info;
  110. ^
  111. client_test.cpp:382:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  112. , i->upload_queue_length
  113. ^
  114. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  115. from client_test.cpp:56:
  116. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  117. struct peer_info;
  118. ^
  119. client_test.cpp:384:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  120. , (i->flags & peer_info::interesting)?'I':'.'
  121. ^
  122. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  123. from client_test.cpp:56:
  124. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  125. struct peer_info;
  126. ^
  127. client_test.cpp:384:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  128. , (i->flags & peer_info::interesting)?'I':'.'
  129. ^
  130. client_test.cpp:385:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  131. , (i->flags & peer_info::choked)?'C':'.'
  132. ^
  133. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  134. from client_test.cpp:56:
  135. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  136. struct peer_info;
  137. ^
  138. client_test.cpp:385:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  139. , (i->flags & peer_info::choked)?'C':'.'
  140. ^
  141. client_test.cpp:386:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  142. , (i->flags & peer_info::remote_interested)?'i':'.'
  143. ^
  144. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  145. from client_test.cpp:56:
  146. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  147. struct peer_info;
  148. ^
  149. client_test.cpp:386:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  150. , (i->flags & peer_info::remote_interested)?'i':'.'
  151. ^
  152. client_test.cpp:387:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  153. , (i->flags & peer_info::remote_choked)?'c':'.'
  154. ^
  155. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  156. from client_test.cpp:56:
  157. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  158. struct peer_info;
  159. ^
  160. client_test.cpp:387:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  161. , (i->flags & peer_info::remote_choked)?'c':'.'
  162. ^
  163. client_test.cpp:388:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  164. , (i->flags & peer_info::supports_extensions)?'e':'.'
  165. ^
  166. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  167. from client_test.cpp:56:
  168. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  169. struct peer_info;
  170. ^
  171. client_test.cpp:388:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  172. , (i->flags & peer_info::supports_extensions)?'e':'.'
  173. ^
  174. client_test.cpp:389:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  175. , (i->flags & peer_info::local_connection)?'l':'r'
  176. ^
  177. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  178. from client_test.cpp:56:
  179. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  180. struct peer_info;
  181. ^
  182. client_test.cpp:389:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  183. , (i->flags & peer_info::local_connection)?'l':'r'
  184. ^
  185. client_test.cpp:390:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  186. , (i->flags & peer_info::seed)?'s':'.'
  187. ^
  188. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  189. from client_test.cpp:56:
  190. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  191. struct peer_info;
  192. ^
  193. client_test.cpp:390:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  194. , (i->flags & peer_info::seed)?'s':'.'
  195. ^
  196. client_test.cpp:391:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  197. , (i->flags & peer_info::on_parole)?'p':'.'
  198. ^
  199. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  200. from client_test.cpp:56:
  201. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  202. struct peer_info;
  203. ^
  204. client_test.cpp:391:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  205. , (i->flags & peer_info::on_parole)?'p':'.'
  206. ^
  207. client_test.cpp:392:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  208. , (i->flags & peer_info::optimistic_unchoke)?'O':'.'
  209. ^
  210. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  211. from client_test.cpp:56:
  212. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  213. struct peer_info;
  214. ^
  215. client_test.cpp:392:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  216. , (i->flags & peer_info::optimistic_unchoke)?'O':'.'
  217. ^
  218. client_test.cpp:393:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  219. , (i->read_state == peer_info::bw_limit)?'r':
  220. ^
  221. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  222. from client_test.cpp:56:
  223. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  224. struct peer_info;
  225. ^
  226. client_test.cpp:393:24: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  227. , (i->read_state == peer_info::bw_limit)?'r':
  228. ^
  229. client_test.cpp:394:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  230. (i->read_state == peer_info::bw_network)?'R':'.'
  231. ^
  232. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  233. from client_test.cpp:56:
  234. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  235. struct peer_info;
  236. ^
  237. client_test.cpp:394:23: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  238. (i->read_state == peer_info::bw_network)?'R':'.'
  239. ^
  240. client_test.cpp:395:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  241. , (i->write_state == peer_info::bw_limit)?'w':
  242. ^
  243. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  244. from client_test.cpp:56:
  245. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  246. struct peer_info;
  247. ^
  248. client_test.cpp:395:25: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  249. , (i->write_state == peer_info::bw_limit)?'w':
  250. ^
  251. client_test.cpp:396:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  252. (i->write_state == peer_info::bw_network)?'W':'.'
  253. ^
  254. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  255. from client_test.cpp:56:
  256. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  257. struct peer_info;
  258. ^
  259. client_test.cpp:396:24: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  260. (i->write_state == peer_info::bw_network)?'W':'.'
  261. ^
  262. client_test.cpp:397:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  263. , (i->flags & peer_info::snubbed)?'S':'.'
  264. ^
  265. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  266. from client_test.cpp:56:
  267. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  268. struct peer_info;
  269. ^
  270. client_test.cpp:397:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  271. , (i->flags & peer_info::snubbed)?'S':'.'
  272. ^
  273. client_test.cpp:398:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  274. , (i->flags & peer_info::upload_only)?'U':'D'
  275. ^
  276. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  277. from client_test.cpp:56:
  278. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  279. struct peer_info;
  280. ^
  281. client_test.cpp:398:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  282. , (i->flags & peer_info::upload_only)?'U':'D'
  283. ^
  284. client_test.cpp:400:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  285. , (i->flags & peer_info::rc4_encrypted)?'E':
  286. ^
  287. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  288. from client_test.cpp:56:
  289. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  290. struct peer_info;
  291. ^
  292. client_test.cpp:400:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  293. , (i->flags & peer_info::rc4_encrypted)?'E':
  294. ^
  295. client_test.cpp:401:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  296. (i->flags & peer_info::plaintext_encrypted)?'e':'.'
  297. ^
  298. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  299. from client_test.cpp:56:
  300. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  301. struct peer_info;
  302. ^
  303. client_test.cpp:401:17: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  304. (i->flags & peer_info::plaintext_encrypted)?'e':'.'
  305. ^
  306. client_test.cpp:405:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  307. , (i->source & peer_info::tracker)?'T':'_'
  308. ^
  309. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  310. from client_test.cpp:56:
  311. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  312. struct peer_info;
  313. ^
  314. client_test.cpp:405:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  315. , (i->source & peer_info::tracker)?'T':'_'
  316. ^
  317. client_test.cpp:406:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  318. , (i->source & peer_info::pex)?'P':'_'
  319. ^
  320. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  321. from client_test.cpp:56:
  322. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  323. struct peer_info;
  324. ^
  325. client_test.cpp:406:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  326. , (i->source & peer_info::pex)?'P':'_'
  327. ^
  328. client_test.cpp:407:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  329. , (i->source & peer_info::dht)?'D':'_'
  330. ^
  331. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  332. from client_test.cpp:56:
  333. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  334. struct peer_info;
  335. ^
  336. client_test.cpp:407:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  337. , (i->source & peer_info::dht)?'D':'_'
  338. ^
  339. client_test.cpp:408:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  340. , (i->source & peer_info::lsd)?'L':'_'
  341. ^
  342. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  343. from client_test.cpp:56:
  344. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  345. struct peer_info;
  346. ^
  347. client_test.cpp:408:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  348. , (i->source & peer_info::lsd)?'L':'_'
  349. ^
  350. client_test.cpp:409:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  351. , (i->source & peer_info::resume_data)?'R':'_'
  352. ^
  353. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  354. from client_test.cpp:56:
  355. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  356. struct peer_info;
  357. ^
  358. client_test.cpp:409:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  359. , (i->source & peer_info::resume_data)?'R':'_'
  360. ^
  361. client_test.cpp:410:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  362. , (i->source & peer_info::incoming)?'I':'_');
  363. ^
  364. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  365. from client_test.cpp:56:
  366. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  367. struct peer_info;
  368. ^
  369. client_test.cpp:410:19: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  370. , (i->source & peer_info::incoming)?'I':'_');
  371. ^
  372. client_test.cpp:416:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  373. , i->failcount, i->num_hashfails);
  374. ^
  375. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  376. from client_test.cpp:56:
  377. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  378. struct peer_info;
  379. ^
  380. client_test.cpp:416:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  381. , i->failcount, i->num_hashfails);
  382. ^
  383. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  384. from client_test.cpp:56:
  385. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  386. struct peer_info;
  387. ^
  388. client_test.cpp:422:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  389. , i->requests_in_buffer, i->used_send_buffer, add_suffix(i->send_buffer_size).c_str()
  390. ^
  391. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  392. from client_test.cpp:56:
  393. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  394. struct peer_info;
  395. ^
  396. client_test.cpp:422:31: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  397. , i->requests_in_buffer, i->used_send_buffer, add_suffix(i->send_buffer_size).c_str()
  398. ^
  399. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  400. from client_test.cpp:56:
  401. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  402. struct peer_info;
  403. ^
  404. client_test.cpp:422:63: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  405. , i->requests_in_buffer, i->used_send_buffer, add_suffix(i->send_buffer_size).c_str()
  406. ^
  407. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  408. from client_test.cpp:56:
  409. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  410. struct peer_info;
  411. ^
  412. client_test.cpp:423:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  413. , i->send_quota, i->used_receive_buffer, add_suffix(i->receive_buffer_size).c_str()
  414. ^
  415. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  416. from client_test.cpp:56:
  417. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  418. struct peer_info;
  419. ^
  420. client_test.cpp:423:23: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  421. , i->send_quota, i->used_receive_buffer, add_suffix(i->receive_buffer_size).c_str()
  422. ^
  423. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  424. from client_test.cpp:56:
  425. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  426. struct peer_info;
  427. ^
  428. client_test.cpp:423:58: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  429. , i->send_quota, i->used_receive_buffer, add_suffix(i->receive_buffer_size).c_str()
  430. ^
  431. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  432. from client_test.cpp:56:
  433. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  434. struct peer_info;
  435. ^
  436. client_test.cpp:424:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  437. , i->queue_bytes);
  438. ^
  439. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  440. from client_test.cpp:56:
  441. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  442. struct peer_info;
  443. ^
  444. client_test.cpp:430:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  445. , total_seconds(i->last_active)
  446. ^
  447. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  448. from client_test.cpp:56:
  449. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  450. struct peer_info;
  451. ^
  452. client_test.cpp:431:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  453. , total_seconds(i->last_request)
  454. ^
  455. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  456. from client_test.cpp:56:
  457. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  458. struct peer_info;
  459. ^
  460. client_test.cpp:432:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  461. , i->request_timeout
  462. ^
  463. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  464. from client_test.cpp:56:
  465. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  466. struct peer_info;
  467. ^
  468. client_test.cpp:433:22: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  469. , total_seconds(i->download_queue_time));
  470. ^
  471. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  472. from client_test.cpp:56:
  473. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  474. struct peer_info;
  475. ^
  476. client_test.cpp:437:18: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  477. , add_suffix(i->pending_disk_bytes).c_str()
  478. ^
  479. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  480. from client_test.cpp:56:
  481. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  482. struct peer_info;
  483. ^
  484. client_test.cpp:438:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  485. , i->rtt);
  486. ^
  487. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  488. from client_test.cpp:56:
  489. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  490. struct peer_info;
  491. ^
  492. client_test.cpp:443:9: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  493. if (i->downloading_piece_index >= 0)
  494. ^
  495. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  496. from client_test.cpp:56:
  497. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  498. struct peer_info;
  499. ^
  500. client_test.cpp:446:7: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  501. i->downloading_progress / float(i->downloading_total), 14);
  502. ^
  503. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  504. from client_test.cpp:56:
  505. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  506. struct peer_info;
  507. ^
  508. client_test.cpp:446:39: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  509. i->downloading_progress / float(i->downloading_total), 14);
  510. ^
  511. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  512. from client_test.cpp:56:
  513. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  514. struct peer_info;
  515. ^
  516. client_test.cpp:455:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  517. if (i->country[0] == 0)
  518. ^
  519. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  520. from client_test.cpp:56:
  521. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  522. struct peer_info;
  523. ^
  524. client_test.cpp:461:41: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  525. snprintf(str, sizeof(str), " %c%c", i->country[0], i->country[1]);
  526. ^
  527. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  528. from client_test.cpp:56:
  529. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  530. struct peer_info;
  531. ^
  532. client_test.cpp:461:56: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  533. snprintf(str, sizeof(str), " %c%c", i->country[0], i->country[1]);
  534. ^
  535. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  536. from client_test.cpp:56:
  537. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  538. struct peer_info;
  539. ^
  540. client_test.cpp:467:50: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  541. snprintf(str, sizeof(str), " %s", add_suffix(i->remote_dl_rate, "/s").c_str());
  542. ^
  543. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  544. from client_test.cpp:56:
  545. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  546. struct peer_info;
  547. ^
  548. client_test.cpp:472:8: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  549. if (i->flags & peer_info::handshake)
  550. ^
  551. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  552. from client_test.cpp:56:
  553. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  554. struct peer_info;
  555. ^
  556. client_test.cpp:472:18: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  557. if (i->flags & peer_info::handshake)
  558. ^
  559. client_test.cpp:479:13: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  560. else if (i->flags & peer_info::connecting)
  561. ^
  562. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  563. from client_test.cpp:56:
  564. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  565. struct peer_info;
  566. ^
  567. client_test.cpp:479:23: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  568. else if (i->flags & peer_info::connecting)
  569. ^
  570. client_test.cpp:486:13: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  571. else if (i->flags & peer_info::queued)
  572. ^
  573. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  574. from client_test.cpp:56:
  575. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  576. struct peer_info;
  577. ^
  578. client_test.cpp:486:23: error: incomplete type ‘libtorrent::peer_info’ used in nested name specifier
  579. else if (i->flags & peer_info::queued)
  580. ^
  581. client_test.cpp:496:12: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  582. out += i->client;
  583. ^
  584. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  585. from client_test.cpp:56:
  586. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  587. struct peer_info;
  588. ^
  589. client_test.cpp: In function ‘void add_torrent(libtorrent::session&, handles_t&, const string&, float, bool, const boost::filesystem::path&, bool, int, int)’:
  590. client_test.cpp:544:37: error: ‘load_file’ was not declared in this scope
  591. if (load_file(filename.c_str(), buf) == 0)
  592. ^
  593. client_test.cpp:545:17: error: no match for ‘operator=’ (operand types are ‘std::vector<char>’ and ‘std::vector<char>*’)
  594. p.resume_data = &buf;
  595. ^
  596. client_test.cpp:545:17: note: candidate is:
  597. In file included from /usr/include/c++/4.8/vector:69:0,
  598. from /usr/include/boost/filesystem/path_traits.hpp:26,
  599. from /usr/include/boost/filesystem/path.hpp:25,
  600. from /usr/include/boost/filesystem/operations.hpp:25,
  601. from client_test.cpp:41:
  602. /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>]
  603. vector<_Tp, _Alloc>::
  604. ^
  605. /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>&’
  606. 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’)
  607. p.save_path = save_path;
  608. ^
  609. client_test.cpp:548:14: note: candidates are:
  610. In file included from /usr/include/c++/4.8/string:52:0,
  611. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  612. from /usr/include/c++/4.8/bits/ios_base.h:41,
  613. from /usr/include/c++/4.8/ios:42,
  614. from /usr/include/c++/4.8/ostream:38,
  615. from /usr/include/c++/4.8/iterator:64,
  616. from client_test.cpp:33:
  617. /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>]
  618. operator=(const basic_string& __str)
  619. ^
  620. /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>&’
  621. /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>]
  622. operator=(const _CharT* __s)
  623. ^
  624. /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*’
  625. /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>]
  626. operator=(_CharT __c)
  627. ^
  628. /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’
  629. 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]
  630. h.set_ratio(preferred_ratio);
  631. ^
  632. client_test.cpp: In function ‘int save_file(const boost::filesystem::path&, std::vector<char>&)’:
  633. 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&)’
  634. if (!f.open(filename, file::write_only, ec)) return -1;
  635. ^
  636. client_test.cpp:668:44: note: candidate is:
  637. In file included from /usr/local/include/libtorrent/storage.hpp:60:0,
  638. from /usr/local/include/libtorrent/torrent_handle.hpp:58,
  639. from /usr/local/include/libtorrent/session.hpp:50,
  640. from client_test.cpp:56:
  641. /usr/local/include/libtorrent/file.hpp:263:8: note: bool libtorrent::file::open(const string&, int, boost::system::error_code&)
  642. bool open(std::string const& p, int m, error_code& ec);
  643. ^
  644. /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>&}’
  645. client_test.cpp: In function ‘void handle_alert(libtorrent::session&, libtorrent::alert*, const handles_t&)’:
  646. 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]
  647. save_file(h.save_path() / (h.name() + ".resume"), out);
  648. ^
  649. 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]
  650. save_file(h.save_path() / (h.name() + ".resume"), out);
  651. ^
  652. 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>’)
  653. save_file(h.save_path() / (h.name() + ".resume"), out);
  654. ^
  655. client_test.cpp: In function ‘int main(int, char**)’:
  656. client_test.cpp:785:32: error: ‘load_file’ was not declared in this scope
  657. if (load_file(".ses_state", in) == 0)
  658. ^
  659. 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]
  660. ses.load_state(bdecode(in.begin(), in.end()));
  661. ^
  662. client_test.cpp:800:32: error: ‘load_file’ was not declared in this scope
  663. if (load_file(".dht_state", in) == 0)
  664. ^
  665. 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]
  666. ses.start_dht(bdecode(in.begin(), in.end()));
  667. ^
  668. client_test.cpp:833:17: error: no match for ‘operator=’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘boost::filesystem::path’)
  669. p.save_path = save_path;
  670. ^
  671. client_test.cpp:833:17: note: candidates are:
  672. In file included from /usr/include/c++/4.8/string:52:0,
  673. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  674. from /usr/include/c++/4.8/bits/ios_base.h:41,
  675. from /usr/include/c++/4.8/ios:42,
  676. from /usr/include/c++/4.8/ostream:38,
  677. from /usr/include/c++/4.8/iterator:64,
  678. from client_test.cpp:33:
  679. /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>]
  680. operator=(const basic_string& __str)
  681. ^
  682. /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>&’
  683. /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>]
  684. operator=(const _CharT* __s)
  685. ^
  686. /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*’
  687. /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>]
  688. operator=(_CharT __c)
  689. ^
  690. /usr/include/c++/4.8/bits/basic_string.h:565:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘char’
  691. 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]
  692. torrent_handle h = add_magnet_uri(ses, argv[i], p, ec);
  693. ^
  694. 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]
  695. h.set_ratio(preferred_ratio);
  696. ^
  697. client_test.cpp:866:17: error: no match for ‘operator=’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘boost::filesystem::path’)
  698. p.save_path = save_path;
  699. ^
  700. client_test.cpp:866:17: note: candidates are:
  701. In file included from /usr/include/c++/4.8/string:52:0,
  702. from /usr/include/c++/4.8/bits/locale_classes.h:40,
  703. from /usr/include/c++/4.8/bits/ios_base.h:41,
  704. from /usr/include/c++/4.8/ios:42,
  705. from /usr/include/c++/4.8/ostream:38,
  706. from /usr/include/c++/4.8/iterator:64,
  707. from client_test.cpp:33:
  708. /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>]
  709. operator=(const basic_string& __str)
  710. ^
  711. /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>&’
  712. /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>]
  713. operator=(const _CharT* __s)
  714. ^
  715. /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*’
  716. /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>]
  717. operator=(_CharT __c)
  718. ^
  719. /usr/include/c++/4.8/bits/basic_string.h:565:7: note: no known conversion for argument 1 from ‘boost::filesystem::path’ to ‘char’
  720. 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]
  721. h.set_ratio(preferred_ratio);
  722. ^
  723. 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]
  724. case 'o': ses.set_max_half_open_connections(atoi(arg)); break;
  725. ^
  726. 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]
  727. case 'd': ses.set_download_rate_limit(atoi(arg) * 1000); break;
  728. ^
  729. 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]
  730. case 'u': ses.set_upload_rate_limit(atoi(arg) * 1000); break;
  731. ^
  732. 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]
  733. case 'S': ses.set_max_uploads(atoi(arg)); break;
  734. ^
  735. 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]
  736. case 'c': ses.set_max_connections(atoi(arg)); break;
  737. ^
  738. 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]
  739. , bind_to_interface.c_str());
  740. ^
  741. 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]
  742. FILE* f = fopen(("peers_" + i->second.name()).c_str(), "w+");
  743. ^
  744. client_test.cpp:1019:45: error: invalid use of incomplete type ‘struct libtorrent::peer_list_entry’
  745. fprintf(f, "%s\t%d\n", print_address(k->ip.address()).c_str()
  746. ^
  747. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  748. from client_test.cpp:56:
  749. /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘struct libtorrent::peer_list_entry’
  750. struct peer_list_entry;
  751. ^
  752. client_test.cpp:1019:59: error: ‘print_address’ was not declared in this scope
  753. fprintf(f, "%s\t%d\n", print_address(k->ip.address()).c_str()
  754. ^
  755. client_test.cpp:1021:25: error: invalid use of incomplete type ‘struct libtorrent::peer_list_entry’
  756. , ses.as_for_ip(k->ip.address())
  757. ^
  758. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  759. from client_test.cpp:56:
  760. /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘struct libtorrent::peer_list_entry’
  761. struct peer_list_entry;
  762. ^
  763. 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]
  764. if (h.is_paused()) continue;
  765. ^
  766. 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]
  767. if (!h.has_metadata()) continue;
  768. ^
  769. 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]
  770. printf("saving resume data for %s\n", h.name().c_str());
  771. ^
  772. 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]
  773. save_file(h.save_path() / (h.name() + ".resume"), out);
  774. ^
  775. 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]
  776. save_file(h.save_path() / (h.name() + ".resume"), out);
  777. ^
  778. 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>’)
  779. save_file(h.save_path() / (h.name() + ".resume"), out);
  780. ^
  781. 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]
  782. if (h.is_valid()) h.set_sequential_download(!h.is_sequential_download());
  783. ^
  784. 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]
  785. if (!h.is_auto_managed() && h.is_paused())
  786. ^
  787. 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]
  788. if (!h.is_auto_managed() && h.is_paused())
  789. ^
  790. 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]
  791. if (h.is_paused()) out += esc("34");
  792. ^
  793. 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]
  794. std::string name = h.name();
  795. ^
  796. 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]
  797. bool paused = h.is_paused();
  798. ^
  799. 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]
  800. bool auto_managed = h.is_auto_managed();
  801. ^
  802. 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]
  803. bool sequential_download = h.is_sequential_download();
  804. ^
  805. 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=]
  806. , add_suffix(cs.total_used_buffers * 16 * 1024).c_str());
  807. ^
  808. 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=]
  809. 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]
  810. out += h.name();
  811. ^
  812. 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]
  813. && h.has_metadata())
  814. ^
  815. 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]
  816. torrent_info const& info = h.get_torrent_info();
  817. ^
  818. client_test.cpp:1534:30: error: ‘std::string’ has no member named ‘leaf’
  819. , info.file_at(i).path.leaf().c_str()
  820. ^
  821. 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]
  822. entry session_state = ses.state();
  823. ^
  824. 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]
  825. entry dht_state = ses.dht_state();
  826. ^
  827. In file included from /usr/include/c++/4.8/iterator:63:0,
  828. from client_test.cpp:33:
  829. /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]’:
  830. client_test.cpp:328:25: required from here
  831. /usr/include/c++/4.8/bits/stl_iterator.h:898:27: error: invalid use of incomplete type ‘const struct libtorrent::peer_info’
  832. { return __lhs.base() - __rhs.base(); }
  833. ^
  834. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  835. from client_test.cpp:56:
  836. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘const struct libtorrent::peer_info’
  837. struct peer_info;
  838. ^
  839. In file included from /usr/include/c++/4.8/iterator:63:0,
  840. from client_test.cpp:33:
  841. /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>]’:
  842. client_test.cpp:352:23: required from here
  843. /usr/include/c++/4.8/bits/stl_iterator.h:748:2: error: cannot increment a pointer to incomplete type ‘const libtorrent::peer_info’
  844. ++_M_current;
  845. ^
  846. /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>]’:
  847. client_test.cpp:1017:39: required from here
  848. /usr/include/c++/4.8/bits/stl_iterator.h:748:2: error: cannot increment a pointer to incomplete type ‘libtorrent::peer_list_entry’
  849. In file included from /usr/include/c++/4.8/vector:64:0,
  850. from /usr/include/boost/filesystem/path_traits.hpp:26,
  851. from /usr/include/boost/filesystem/path.hpp:25,
  852. from /usr/include/boost/filesystem/operations.hpp:25,
  853. from client_test.cpp:41:
  854. /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>]’:
  855. /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>]’
  856. client_test.cpp:963:25: required from here
  857. /usr/include/c++/4.8/bits/stl_vector.h:161:9: error: invalid use of incomplete type ‘struct libtorrent::peer_info’
  858. - this->_M_impl._M_start); }
  859. ^
  860. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  861. from client_test.cpp:56:
  862. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘struct libtorrent::peer_info’
  863. struct peer_info;
  864. ^
  865. In file included from /usr/include/c++/4.8/vector:64:0,
  866. from /usr/include/boost/filesystem/path_traits.hpp:26,
  867. from /usr/include/boost/filesystem/path.hpp:25,
  868. from /usr/include/boost/filesystem/operations.hpp:25,
  869. from client_test.cpp:41:
  870. /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>]’:
  871. /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>]’
  872. client_test.cpp:1009:34: required from here
  873. /usr/include/c++/4.8/bits/stl_vector.h:161:9: error: invalid use of incomplete type ‘struct libtorrent::peer_list_entry’
  874. - this->_M_impl._M_start); }
  875. ^
  876. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  877. from client_test.cpp:56:
  878. /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘struct libtorrent::peer_list_entry’
  879. struct peer_list_entry;
  880. ^
  881. In file included from /usr/include/c++/4.8/vector:62:0,
  882. from /usr/include/boost/filesystem/path_traits.hpp:26,
  883. from /usr/include/boost/filesystem/path.hpp:25,
  884. from /usr/include/boost/filesystem/operations.hpp:25,
  885. from client_test.cpp:41:
  886. /usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = libtorrent::peer_info*]’:
  887. /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]’
  888. /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>]’
  889. client_test.cpp:963:25: required from here
  890. /usr/include/c++/4.8/bits/stl_construct.h:127:27: error: invalid use of incomplete type ‘_Value_type {aka struct libtorrent::peer_info}’
  891. __destroy(__first, __last);
  892. ^
  893. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  894. from client_test.cpp:56:
  895. /usr/local/include/libtorrent/torrent_handle.hpp:71:9: error: forward declaration of ‘_Value_type {aka struct libtorrent::peer_info}’
  896. struct peer_info;
  897. ^
  898. In file included from /usr/include/c++/4.8/vector:62:0,
  899. from /usr/include/boost/filesystem/path_traits.hpp:26,
  900. from /usr/include/boost/filesystem/path.hpp:25,
  901. from /usr/include/boost/filesystem/operations.hpp:25,
  902. from client_test.cpp:41:
  903. /usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = libtorrent::peer_list_entry*]’:
  904. /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]’
  905. /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>]’
  906. client_test.cpp:1009:34: required from here
  907. /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}’
  908. __destroy(__first, __last);
  909. ^
  910. In file included from /usr/local/include/libtorrent/session.hpp:50:0,
  911. from client_test.cpp:56:
  912. /usr/local/include/libtorrent/torrent_handle.hpp:72:9: error: forward declaration of ‘_Value_type {aka struct libtorrent::peer_list_entry}’
  913. struct peer_list_entry;
  914. ^
Advertisement
Add Comment
Please, Sign In to add comment