On Wed, Nov 26, 2008 at 14:45, Matthew Weigel <[EMAIL PROTECTED]> wrote: >> Was anyone able to build libevent on windows? > > http://monkeymail.org/archives/libevent-users/2008-November/001432.html
Thanks. It works perfectly with VS 2008. To create a dll I had to: - apply changes your "patch" - remove the 'event-config.h' from main dir (not sure if that's needed) - in the project properties change 'configuration type' to 'dynamic library' - in properties/linker/input add 'ws2_32.lib' to 'additional dependencies' - add "__declspec(dllexport)" attribute before every function that should be exported from libevent. There may be some methods of exporting all symbols automatically: http://stackoverflow.com/questions/225432?sort=votes I haven't checked if the lib really works, but libevent.event_get_version() returns '1.3.99-trunk' which is a good sign (though the version is wrong). Cheers! Marek Majkowski _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users