воскресенье, 25 января 2009 г.

Compile libevent-1.4.9-stable under windows Visual Studio 2005

Compile libevent-1.4.9-stable under windows Visual Studio 2005

0) if you want get now solution go 7) ( and 6))
1) I take file "event-config.h" from http://code.jellycan.com/memcached/ - libevent-1.4.4-stable-win32.zip
2) copy event-config.h to ---> ...\libevent-1.4.9-stable\WIN32-Code
delete event-config.h from ---> ...\libevent-1.4.9-stable
3) now you can open ...\libevent-1.4.9-stable\WIN32-Prj\libevent.sln
and compile it
4) i write
#define exit(i) printf(" _____exit(%d) - hidden _____\n", i);
in file regress_dns.c
and write in function "main" before "return (0)"
printf("End tests ...");
while(1);
5) now you run regress project and will see like this



6)!!! you can see
Simple DNS resolve: [Timed out] FAILED
i dont know why this error !!!
7) now here the all source and solution for Visual Studio 2005
open ...\libevent-1.4.9-stable\WIN32-Prj\libevent.sln
compile and run regress test
8) libevent64.lib - libevent for 64 bit windows
libevent32.lib - libevent for 32 bit windows

Комментариев нет:

Отправить комментарий