I have recently downloaded Dev CPP and the Direct X support files. After importing a 3D Visual C++ project, and some editing it compiles rather well.
However, the compiler does report an error when initializing Direct Input. This is the only error reported so far in the build. Everything else seems rather clean.
It is as follows:
undefined reference to 'IID_IDirectInput8A'
It is defined in dinput.h which is included. The libdxguid.a is also included in the linker.
I have recently downloaded Dev CPP and the Direct X support files. After importing a 3D Visual C++ project, and some editing it compiles rather well.
However, the compiler does report an error when initializing Direct Input. This is the only error reported so far in the build. Everything else seems rather clean.
It is as follows:
undefined reference to 'IID_IDirectInput8A'
It is defined in dinput.h which is included. The libdxguid.a is also included in the linker.
What am I missing ?
The command:
hr = DirectInput8Create(hInst, DIRECTINPUT_VERSION,IID_IDirectInput8, (void**)&lpDI, NULL);
Thanks in advance,
Guy
I think I posted this in the wrong forum.
My apologies.
OK. Got it to work now.
Plugged in IID_IUnknown, and it works fine.
My question now is why ?