diff --git a/Jamfile b/Jamfile
index d2eb4cb3a..b3d3e0b93 100755
--- a/Jamfile
+++ b/Jamfile
@@ -83,6 +83,9 @@ lib torrent
zlib//zlib
src/$(SOURCES)
$(LIBS)
+ /boost/thread//boost_thread
+ /boost/filesystem//boost_filesystem/static
+ /boost/date_time//boost_date_time/static
:
multi
static
diff --git a/examples/client_test.cpp b/examples/client_test.cpp
index 0b8e4e1e7..1803f5f08 100755
--- a/examples/client_test.cpp
+++ b/examples/client_test.cpp
@@ -226,7 +226,8 @@ int main(int argc, char* argv[])
return 1;
}
- boost::filesystem::path::default_name_check(boost::filesystem::no_check);
+ namespace fs = boost::filesystem;
+ fs::path::default_name_check(fs::no_check);
http_settings settings;
// settings.proxy_ip = "192.168.0.1";
diff --git a/src/storage.cpp b/src/storage.cpp
index 8e78c4922..84359c580 100755
--- a/src/storage.cpp
+++ b/src/storage.cpp
@@ -1178,6 +1178,7 @@ namespace libtorrent
}
catch (file_error&)
{
+ // TODO: skip the whole file here!
// this means the slot wasn't allocated
assert(m_slot_to_piece[current_slot] == unallocated);
m_unallocated_slots.push_back(current_slot);
diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp
index c67e25478..5eb49c5de 100755
--- a/src/torrent_info.cpp
+++ b/src/torrent_info.cpp
@@ -201,6 +201,7 @@ namespace libtorrent
hasher h;
h.update(&buf[0], (int)buf.size());
m_info_hash = h.final();
+ std::copy(m_info_hash.begin(), m_info_hash.end(), std::ostream_iterator(std::cout));
// extract piece length
m_piece_length = (int)info["piece length"].integer();
@@ -255,7 +256,7 @@ namespace libtorrent
boost::gregorian::date(
boost::date_time::not_a_date_time)))
{
- return m_creation_date;
+ return boost::optional(m_creation_date);
}
return boost::optional();
}