snowyu / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
1 stars 0 forks source link

Compile error version 16.15: unresolved external #594

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile libtorrent using: bjam toolset=msvc-12.0 link=static variant=debug 
boost=source
2. Link libs in visual studio 2013: 
   - libboost_system-vc120-mt-gd-1_55.lib
   - libboost_date_time-vc120-mt-gd-1_55.lib
   - libtorrent.lib

What is the expected output? What do you see instead?
It should compile, but instead I get the following linker error: 
error LNK2019: unresolved external symbol "void __cdecl 
libtorrent::rel_performancetimer_pools_nolog_resolvecountries_deprecated_nodht_e
xt_(void)" 
(?rel_performancetimer_pools_nolog_resolvecountries_deprecated_nodht_ext_@libtor
rent@@YAXXZ) referenced in function "public: __thiscall 
libtorrent::session::session(struct libtorrent::fingerprint const 
&,int,unsigned int)" (??0session@libtorrent@@QAE@ABUfingerprint@1@HI@Z)

What version of the product are you using? On what operating system?
libtorrent-rasterbar-0.16.15; boost_1_55_0; Visual Studio 2013; Windows 8.1 
64bits.

I know there is a similiar Issue 
(https://code.google.com/p/libtorrent/issues/detail?id=372), but I still can't 
figure out how to solve this problem.

Thank you.

Original issue reported on code.google.com by lucas...@gmail.com on 20 Mar 2014 at 5:06

GoogleCodeExporter commented 9 years ago
This is caused by using different TORRENT_* macros when building libtorrent and 
when linking against it (in your client). This is unfortunately a common source 
of link errors. in the next major release, there are fewer build options that 
affects the ABI of libtorrent. Most importantly, TORRENT_DEBUG no longer 
affects the ABI.

Original comment by arvid.no...@gmail.com on 21 Mar 2014 at 5:42

GoogleCodeExporter commented 9 years ago

Original comment by arvid.no...@gmail.com on 4 Apr 2014 at 7:02