From: Brian D. <br...@de...> - 2006-11-22 16:42:32
|
sfniks sfinks wrote: > /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 > > ... > E:/mingw/msys/1.0/boost/include/boost-1_33_1/boost/shared_ptr.hpp:253: > undefined reference to `AcceptEx@32' Read the MSDN docs for AcceptEx(). It says you must include mswsock.h and link to mswsock.dll to use this function, but you don't supply -lmswsock on the link command. It sounds like a bug in the Makefile.am if these functions are used without adding the proper libs. You can probably work around it by adding it to LIBS, but it should be reported as a bug to whoever maintains the Makefile.in/Makefile.am. By the way, your current configure invocation uses the obsolete syntax of providing overrides as environment variables. The preferred method is to supply them as command line arguments: ./configure --prefix=`cd /opt && pwd -W` \ LDFLAGS="-L/boost/lib" \ CPPFLAGS="-I/boost/include/boost-1_33_1" \ LIBS="-lmswsock" && make The only time you should use the other form is when dealing with an older autoconf 2.13 package. Also, for most MinGW packages you need to use a win32 path for prefix, so --prefix=`cd /opt && pwd -W` is what you should use. > E:/mingw/msys/1.0/home/devel/E/libtorrent-0.11/src/session_impl.cpp:403: > undefined reference to `GetAcceptExSockaddrs@32' Same here. Brian |