Can build Box2d but not testbed. Windows7, mingw32-make

Code:
C:\Qt\Box2D_v2.1.2\Box2D>mingw32-make testbed
[ 25%] Built target freeglut_static
[ 62%] Built target Box2D
[ 95%] Built target glui
Linking CXX executable Testbed.exe
..\freeglut\libfreeglut_static.a(freeglut_init.obj):freeglut_init.c:(.text+0x1bb
): undefined reference to `timeBeginPeriod@4'
..\freeglut\libfreeglut_static.a(freeglut_init.obj):freeglut_init.c:(.text+0x3fc
): undefined reference to `timeEndPeriod@4'
..\freeglut\libfreeglut_static.a(freeglut_main.obj):freeglut_main.c:(.text+0x464
): undefined reference to `timeGetTime@0'
..\freeglut\libfreeglut_static.a(freeglut_joystick.obj):freeglut_joystick.c:(.te
xt+0xc8): undefined reference to `joyGetPosEx@8'
..\freeglut\libfreeglut_static.a(freeglut_joystick.obj):freeglut_joystick.c:(.te
xt+0x8af): undefined reference to `joyGetDevCapsA@12'
collect2: ld returned 1 exit status
mingw32-make[3]: *** [Testbed/Testbed.exe] Error 1
mingw32-make[2]: *** [Testbed/CMakeFiles/Testbed.dir/all] Error 2
mingw32-make[1]: *** [Testbed/CMakeFiles/Testbed.dir/rule] Error 2
mingw32-make: *** [testbed] Error 2
You are missing a library.
I can see ..\freeglut\libfreeglut_static.a so which library am I missing?

This is a new install of windows 7 and I've not installed a great deal so perhaps I've missed something out.

Any ideas?

Many thanks
For example, you need a library that defines: timeBeginPeriod

Try using Google to learn what library this belongs to.
Ah righto, looks like its some MSVC++ lib. Shame, suppose I'll have to install that hulking thing. 🙂

Cheer Erin
Actually you just need to add winmm to your cmake text file thing.
See the bottom post of this thread. It worked for me using qt creator.
viewtopic.php?f=7&t=4463

I wonder if there is a library that both linux and windows can use that would solve the same problem.

Original thread: https://box2d.org/forum/viewtopic.php?t=5661