Search code examples
c++headeroverridinglibevent

libevent: how to override header includes


I have this include in my code

#include<event.h>

which is supposed to include the libevent's header file event.h. But when I see the list of included files it includes this header file

Note: including file: C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\event.h

How do I tell the msvc compiler to load libevents event.h header file ? . Thanks


Solution

  • If you're using libevent version 2, it is probably best to update the includes (look at the table). The new include files don't suffer from this specific issue.