From 282b06a9a54574232a8f81991ea32399e1cbc5d4 Mon Sep 17 00:00:00 2001
From: Arvid Norberg
Date: Mon, 21 Nov 2005 22:36:27 +0000
Subject: [PATCH] fixed typo in example code
---
docs/manual.html | 20 +++++++++++++++++++-
docs/manual.rst | 2 +-
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/docs/manual.html b/docs/manual.html
index 953771694..279580472 100755
--- a/docs/manual.html
+++ b/docs/manual.html
@@ -401,6 +401,9 @@ you'd set them like this:
export LDFLAGS=-L/opt/local/lib
export CXXFLAGS=-I/opt/local/include
+It was observed on FreeBSD (release 6.0) that one needs to add '-lpthread' to
+LDFLAGS, as Boost::Thread detection will fail without it, even if
+Boost::Thread is installed.
If you need to set these variables, it may be a good idea to add those lines
to your ~/.profile or ~/.tcshrc depending on your shell.
You know that the boost libraries were found if you see the following output
@@ -450,6 +453,21 @@ make clean
make
+
+
+
No build system is present if libtorrent is checked out from CVS - it
+needs to be generated first.
+
Execute the following commands to generate the build system:
+
+- autoheader
+- aclocal -I m4
+- libtoolize --copy --force
+- automake --add-missing --copy --gnu
+- autoconf
+
+
After generating the build system, run configure and build
+libtorrent. This was described earlier.
+
@@ -2699,7 +2717,7 @@ int main(int argc, char* argv[])
std::cout << "\n\n----- torrent file info -----\n\n";
std::cout << "trackers:\n";
for (std::vector<announce_entry>::const_iterator i
- = t.trackers().begin(), end(t.trackers().end); i != end; ++i)
+ = t.trackers().begin(), end(t.trackers().end()); i != end; ++i)
{
std::cout << i->tier << ": " << i->url << "\n";
}
diff --git a/docs/manual.rst b/docs/manual.rst
index 44462e1a8..ca78e8bfc 100755
--- a/docs/manual.rst
+++ b/docs/manual.rst
@@ -2804,7 +2804,7 @@ print information about it to std out::
std::cout << "\n\n----- torrent file info -----\n\n";
std::cout << "trackers:\n";
for (std::vector
::const_iterator i
- = t.trackers().begin(), end(t.trackers().end); i != end; ++i)
+ = t.trackers().begin(), end(t.trackers().end()); i != end; ++i)
{
std::cout << i->tier << ": " << i->url << "\n";
}