Steps to reproduce :
         Drop code into existing solution.
         Make sure you are linking to WS2_32.lib and Winmm.lib
         Make sure that you have defined WIN32_LEAN_AND_MEAN
Build.

Problem : Linker errors ( timeBeginPeriod etc from winmm.lib, called from
enet_initialize).

Fix: Due to WIN32_LEAN_AND_MEAN , mmsystem.h is no longer included in the
chain that enet relied on before.

At the top of win32.h, Line 18 (added underneath the other includes).

#ifdef WIN32_LEAN_AND_MEAN
#include <mmsystem.h>
#endif /* WIN32_LEAN_AND_MEAN */


Hopefully this will save someone some time.
_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to