Error compiling libtorrent (MSVC10)

Windows specific questions, problems.
Post Reply
estux

Error compiling libtorrent (MSVC10)

Post by estux »

Hi!

I am trying to compile qbittorrent in windows following this link :
The only difference is that I am using MSVC10.

But I am getting this error while trying to compile libtorrent

Code: Select all

...
compile-c-c++ bin\msvc-10.0\release\boost-source\encryption-openssl\geoip-static\link-static\runtime-link-static\threading-multi\src\disk_buffer_pool.obj
disk_buffer_pool.cpp
include\libtorrent/disk_buffer_pool.hpp(52) : error C2039: 'noncopyable' : is not a member of 'boost'
include\libtorrent/disk_buffer_pool.hpp(52) : error C2504: 'noncopyable' : base class undefined
...
Any idea?
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: Error compiling libtorrent (MSVC10)

Post by sledgehammer_999 »

Yes 0.16.12 is broken but already fixed in svn.
estux

Re: Error compiling libtorrent (MSVC10)

Post by estux »

Thank you! Using the latest code solved the problem.

Now I am getting linker errors in qBittorrent:

Code: Select all


libtorrent.lib(http_stream.obj):-1: error: LNK2001: unresolved external symbol "void * __cdecl boost::asio::asio_handler_allocate(unsigned int,...)" (?asio_handler_allocate@asio@boost@@YAPAXIZZ)
libtorrent.lib(http_stream.obj):-1: error: LNK2001: unresolved external symbol "void __cdecl boost::asio::asio_handler_deallocate(void *,unsigned int,...)" (?asio_handler_deallocate@asio@boost@@YAXPAXIZZ)

Maybe libtorrent.lib has not been compiled in the right way. I am using boost 1.54.
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: Error compiling libtorrent (MSVC10)

Post by sledgehammer_999 »

Did you chagne the lib names in winconf-msvc.pri to match boost 1.54?
estux

Re: Error compiling libtorrent (MSVC10)

Post by estux »

Yes, I have checked it and I have the right name: libboost_system-vc100-mt-s-1_54.lib

EDIT: I have fixed it using this patch
Last edited by estux on Fri Nov 01, 2013 5:12 pm, edited 1 time in total.
Post Reply