<div>Steps to reproduce : </div><div> Drop code into existing solution.</div><div> Make sure you are linking to WS2_32.lib and Winmm.lib</div><div> Make sure that you have defined WIN32_LEAN_AND_MEAN</div>
<div>Build.</div><div><br></div><div>Problem : Linker errors ( timeBeginPeriod etc from winmm.lib, called from enet_initialize).<br></div><div><br></div><div>Fix: Due to WIN32_LEAN_AND_MEAN , mmsystem.h is no longer included in the chain that enet relied on before.</div>
<div><br></div><div>At the top of win32.h, Line 18 (added underneath the other includes).</div><div><br></div><div>#ifdef WIN32_LEAN_AND_MEAN<br>#include <mmsystem.h><br>#endif /* WIN32_LEAN_AND_MEAN */<br></div><div>
<br></div><div><br></div><div>Hopefully this will save someone some time.</div><div><br></div><div><br></div>