Hello, I am attempting to program a Wii remote using the Native C++ Wiimote library by gl.tter, http://www.wiiyourself.gl.tter.org/
When I first went to compile my program, I received numerous errors about undefined functions, all of which were remedied by #include-ing windows.h and stdio.h at the beginning of the wiimote library. However, when I attempt to compile my program now, I receive a bunch of errors about undefined references
undefined reference to '__imp_time_BeginPeriod'
undefined reference to '__imp_timeEndPeriod'
undefined reference to '__imp_HidD_GetHidGuid'
undefined reference to '__imp_SetupDiGetClass_DevsA'
undefined reference to '__imp_SetupDiGetDeviceInterfaceDetailA'
undefined reference to '__imp_HidD_GetAttributes'
undefined reference to '__imp_timeGetTime'
undefined reference to '__imp_SetupDiEnumDeviceIntefaces'
undefined reference to '__imp_SetupDiDestroyDeviceInfoList'
[Error] ld returned 1 exit status
recipe for target "sandbox.exe" failed
All of these errors are occuring in the object file for my program.
I am using Dev-C++ with the MingW compiler