majek04 wrote:
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)
Yep, I noted it that in the message - I couldn't do that in a separate tarball, and I was too lazy to make a proper patch that should be able to do that.

 - in the project properties change 'configuration type' to 'dynamic library'
Yeah, libevent normally just builds a library to link directly with your application.

 - in properties/linker/input add 'ws2_32.lib' to 'additional dependencies'
Hmmm, I think I took that out of the project myself - didn't seem to need it, and the regress subproject needed others. That may be a difference between setting it for a static library and a DLL?
 - 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
Again, a DLL issue. :-)

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).
My main goal was to get the regress project to build and run its tests... I didn't pursue it past that.
--
Matthew Weigel

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

Reply via email to