diff --git a/include/libtorrent/bencode.hpp b/include/libtorrent/bencode.hpp index 4e8f8a10b..5d2a99e1f 100644 --- a/include/libtorrent/bencode.hpp +++ b/include/libtorrent/bencode.hpp @@ -119,7 +119,9 @@ namespace libtorrent return int(val.length()); } - TORRENT_EXTRA_EXPORT char const* integer_to_str(char* buf, int size, entry::integer_type val); + // this is used in the template, so it must be available to the client + TORRENT_EXPORT char const* integer_to_str(char* buf, int size + , entry::integer_type val); template int write_integer(OutIt& out, entry::integer_type val)