i'm totally clueless on compiling C++ programs but after a lot of error and trial i managed to get all errors gone except one mainly : "jamma_driver_keyboard.o (.text+0x43d):jamma_driver_keyboard.cpp: undefined reference to `DirectInputCreateA@16'"
what i did was download minigw, dinput.h, dinputd.h (wasn't sure if it was needed or not), dxguid.lib and dinput.lib from the DX9 SDK.
then i did mingw32-c++ -c jamma_driver_keyboard.cpp
which gave me a jamma_driver_keyboard.o file
afterwards i did mingw32-c++ -shared -o controller.znc jamma_driver_keyboard.o jamma_driver.def c:\MinGW\lib\dxguid.lib c:\MinGW\lib\dinput.lib
it's supposed to create a dll (well renamed to controller.znc) but it's here that i get the last error i mentioned before. i have no idea if i was on the right track or not but maybe it can help, if i left out the 2 dx libs i got 2 more errors saying :
jamma_driver_keyboard.o(.text+0x510):jamma_driver_keyboard.cpp: undefined reference to `GUID_SysKeyboard'
jamma_driver_keyboard.o(.text+0x556):jamma_driver_keyboard.cpp: undefined reference to `c_dfDIKeyboard'
maybe i forgot another libary or am i completly on the wrong track ? cause i was solely using the "error and trial" way hehe
