Looks like you need to link against the winsock library (Ws2_32.lib). tim From: simon zhang <hapopen@xxxxxxxxx> Reply-To: "libevent-users@xxxxxxxxxxxxx" <libevent-users@xxxxxxxxxxxxx> Date: Friday, January 11, 2013 2:28 PM To: "libevent-users@xxxxxxxxxxxxx" <libevent-users@xxxxxxxxxxxxx> Subject: [Libevent-users] some static compiled error in mingw+msys Hi all.
I have writed a python expanded in winxp with mingw+msys compiled.It will call libevent lib.I hope that user don't install more library,so
I want to compile it statically.But there are some error.I describe the process.compile and install libevent: ./configure -prefix=D:/libevent -enable-static makefile 1: HEAD_PATH_FLAGS=-IC:/Python27/include -ID:/boost/include/boost-1_52 -ID:/libevent/include makefile 2: HEAD_PATH_FLAGS=-IC:/Python27/include -ID:/boost/include/boost-1_52 -ID:/libevent/include I have writed two makefile and do the same error. libevent.a(buffer.o):In function 'evbuffer_read':undefined reference to 'WSARecv@28' Why?How to compile it rightly. |