c++ - Linker error with a xbox 360 controller function -


i'm getting undefined reference xinputgetstate , have no idea why. headers i'm using : xinput.h , windows.h.

firstplayer constant 0.

xinput_state state; zeromemory( &state, sizeof(xinput_state) ); // state of controller xinput. dwresult = xinputgetstate( firstplayer, &state ); 

any advice nice.

i'm using codeblocks ide mingw compiler.

okay figured out. missing line :

#pragma comment(lib, "xinput.lib")  

is there better work around this? feel strange!


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -