I'd like to use this gamepad library (https://github.com/elanthis/gamepad/) written in C in my C++ application. Unfortunately I can't get it to work.
So far I've tried to create a shared library and link it using Qt's GUI. When trying to run my C++ program I still get the error "main.cpp:89: Error: undefined reference to `_imp__GamepadInit'" which seems to tell me that the library wasn't properly linked yet.
My main application looks like this:
#include "gamepad.h"
int main(int argc, char *argv[]) {
GamepadInit();
return 0;
}
As I'm pretty clueless my question is: what would be the basic steps to use functions of this library (given the .c & .h files) when working with Qt Creator/MinGW?