building errors, ( shared_ptr.hpp:253: undefined reference to `AcceptEx@32' )
Hi.
I'm trying to build libtorrent ( http://libtorrent.sf.net ) on
xp+mingw+msys and I get some errors regarding boost.
Hopefully someone can help.. Sorry if its not much of a boost problem....
I've attached compiler output text as as .txt file...
~/E/libtorrent-0.11
$ make
make all-recursive
make[1]: Entering directory `/home/devel/E/libtorrent-0.11'
Making all in include
make[2]: Entering directory `/home/devel/E/libtorrent-0.11/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/devel/E/libtorrent-0.11/include'
Making all in zlib
make[2]: Entering directory `/home/devel/E/libtorrent-0.11/zlib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/devel/E/libtorrent-0.11/zlib'
Making all in src
make[2]: Entering directory `/home/devel/E/libtorrent-0.11/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/devel/E/libtorrent-0.11/src'
Making all in test
make[2]: Entering directory `/home/devel/E/libtorrent-0.11/test'
/bin/sh ../libtool --tag=CXX --mode=link g++ -ftemplate-depth-50 -I../include -I../include/libtorrent -g -g -O2 -lboost_date_time -lboost_filesystem -lboost_thread -L/boost/lib -o test_piece_picker.exe main.o test_piece_picker.o ../src/libtorrent.la -lws2_32
g++ -ftemplate-depth-50 -I../include -I../include/libtorrent -g -g -O2 -o test_piece_picker.exe main.o test_piece_picker.o -L/boost/lib ../src/.libs/libtorrent.a -lboost_date_time -lboost_filesystem -lboost_thread -lws2_32
../src/.libs/libtorrent.a(session_impl.o)(.text$_ZN4asio6detail23win_iocp_socket_serviceINS_2ip3tcpEE12async_acceptINS_12basic_socketIS3_NS_21stream_socket_serviceIS3_EEEEN5boost3_bi6bind_tIvNSA_4_mfi3mf3IvN10libtorrent3aux12session_implERKNSA_10shared_ptrINS_19basic_stream_socketIS3_S8_EEEERKNSA_8weak_ptrINS_21basic_socket_acceptorIS3_NS_23socket_acceptor_serviceIS3_EEEEEERKNS_5errorEEENSB_5list4INSB_5valueIPSH_EENS11_ISL_EENS11_IST_EENSA_3argILi1EEEEEEEEEvRNS4_19implementation_typeERT_T0_[void asio::detail::win_iocp_socket_serviceasio::ip::tcp::async_accept
sfinks wrote:
Hi.
I'm trying to build libtorrent ( http://libtorrent.sf.net ) on xp+mingw+msys and I get some errors regarding boost.
Hopefully someone can help.. Sorry if its not much of a boost problem....
I've attached compiler output text as as .txt file...
[...]
g++ -ftemplate-depth-50 -I../include -I../include/libtorrent -g -g -O2 -o test_piece_picker.exe main.o test_piece_picker.o -L/boost/lib ../src/.libs/libtorrent.a -lboost_date_time -lboost_filesystem -lboost_thread -lws2_32
[...]
E:/mingw/msys/1.0/boost/include/boost-1_33_1/boost/shared_ptr.hpp:253: undefined reference to `AcceptEx@32'
E:/mingw/msys/1.0/home/devel/E/libtorrent-0.11/src/session_impl.cpp:403: undefined reference to `GetAcceptExSockaddrs@32'
[...]
E:/mingw/msys/1.0/home/devel/E/libtorrent-0.11/src/session_impl.cpp:1579: undefined reference to `AcceptEx@32'
Apparently there's something wrong with your libws2_32.a, where these functions should reside. The file/line information above is bogus.
sfinks wrote:
Hi.
I'm trying to build libtorrent ( http://libtorrent.sf.net ) on xp+mingw+msys and I get some errors regarding boost. [...] g++ -ftemplate-depth-50 -I../include -I../include/libtorrent -g -g -O2 -o test_piece_picker.exe main.o test_piece_picker.o -L/boost/lib ../src/.libs/libtorrent.a -lboost_date_time -lboost_filesystem -lboost_thread -lws2_32 [...] undefined reference to `AcceptEx@32'
It looks like the linker command line is missing "-lmswsock", which is the library that contains the undefined symbols. Cheers, Chris
participants (3)
-
Christopher Kohlhoff
-
Peter Dimov
-
sfinks