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
[ 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