Hi, I'm trying to compile a small Direct Input application with Dev-c++
4.9.8.0 and get
[Warning] In function `ZN2UIC2EP6HWND__':
[Linker error] undefined reference to `IID_IDirectInput8A'
[Linker error] undefined reference to `DirectInput8Create@20'
My linker parameters are
-lopengl32 -lglu32 -ldxguid -ldxerr9 -ldinput8 -ldinput
I'm including dinput.h in the relevant file, and declare the direcX structures
like this
LPDIRECTINPUT DI;
LPDIRECTINPUTDEVICE Keyboard;
This is how the object is created:
DirectInput8Create( GetModuleHandle(NULL), DIRECTINPUT_VERSION,
IID_IDirectInput8, (VOID**)&this->DI, NULL );
I've tried googling and browsing the sourceforge dev-c++ forums and the FAQ,
and haven't come up with much except some description about incompatible
library formats between visual C and gcc, and I didn't know if that was
relevant.
Anyone have any ideas?
Thanks,
Justin.
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
|