Hi,

I have tried compiling libevent (svn, 1.3.99-trunk) for windows with MSVC 9 (Visual Studio 2008), after loads of fiddling I managed to compile the project with a few minor warnings, and I ended up with a "libevent.lib".

I linked ws2_32.lib and got a bunchload of errors while initializing libevent. After an hour I figured out that it might be useful to initialize winsock before actually using it, for some reason I expected libevent to do this.

Things are progressing a bit more, 'time-test' runs fine:

   V:\dev\libevent-svn\WIN32-Prj\time_test\Debug>time_test.exe
   [msg] libevent using: win32
   timeout_cb: called at 1205409820: 2
   timeout_cb: called at 1205409822: 2

So does 'signal-test':
V:\dev\libevent-svn\WIN32-Prj\signal_test\Debug>signal_test.exe
   [msg] libevent using: win32
   signal_cb: got signal 2
   signal_cb: got signal 2
   signal_cb: got signal 2

But when I run 'event-test', it seems to die at select():

   V:\dev\libevent-svn\WIN32-Prj\event_test\Debug>event_test.exe
   [msg] libevent using: win32
   [debug] event_add: event: 002DFF1C, EV_READ   call 00433CE0
   [debug] win32_insert: adding event for 916
   [debug] win32_dispatch: select returned -1

Any idea why it would do that, and what I can do to fix it? I would really like to start using libevent on windows.

Cheers,
Bas Verhoeven

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to