I'm trying to build a simple code (examples/simple_client.cpp) using libtorrent-rasterbar with VS2013 (C++), but I get the following linker error:
error LNK2019: unresolved external symbol "void __cdecl libtorrent::rel_performancetimer_pools_nolog_resolvecountries_deprecated_nodht_ext_(void)" (?rel_performancetimer_pools_nolog_resolvecountries_deprecated_nodht_ext_@libtorrent@@YAXXZ) referenced in function "public: __thiscall libtorrent::session::session(struct libtorrent::fingerprint const &,int,unsigned int)" (??0session@libtorrent@@QAE@ABUfingerprint@1@HI@Z)
I compile libtorrent using: bjam toolset=msvc-12.0 link=static variant=debug boost=source
and link everything in VS:
Additional info: libtorrent-rasterbar-0.16.15; boost_1_55_0; Windows 8.1 64bits.
Any ideas on what's going wrong here?
Thank you.
After some research and tests, I managed to build the project. That's what I did:
Compiled using bjam toolset=msvc-12.0 geoip=off
resolve-countries=off link=static variant=debug boost=source
that
way geoip and resolve-countries is disabled.
Using @Hernán's tip of checking the libtorrent RSP files, I got the following preprocessor definitions:
I added these definitions in VS. For debug configuration, one more definition was necessary: TORRENT_DEBUG (important).
Some websites I used:
Thank you for the help.