Quick help needed: DirectInput8Create

Recommended Posts

I'm trying to build an input engine for my game core but I can't seem to compile it. I'm using Dev-Cpp 4.9.9.0 and have included "dinput8.h" and linked "libdinput8.a" and "libdinput.a" at the same time. In my function to create the DI8 object, I get the following error: [Linker error] undefined reference to IID_IDirectInput8A' Am I missing a header or a library or something? It seems like a very simple problem and there should be some stupid reason for it that I'm missing. Any suggestions? Thanks

Share on other sites

EDIT: Actually, I'm not sure. Tell me if it works or not. [disturbed]

Share on other sites
Thanks for that, I was right. It was a stupid problem and there was a simple answer to it :) But why couldn't I find that in any of the MSDN archives? Damn Microsoft! (just kidding)
It still won't compile, though. Here's the latest error:

Warning C:\Game Core\Warning .drectve %.*s' unrecognized

Have you seen that before, or did I have a typo and it won't show me where it is?

Share on other sites
Oh, jeeze. I accidently typed something wierd in the Linker part somehow. Now it compiles. Thanks again for your help

Share on other sites
Quote:
 Original post by guitarguy310Thanks for that, I was right. It was a stupid problem and there was a simple answer to it :) But why couldn't I find that in any of the MSDN archives? Damn Microsoft! (just kidding)

I'm sure it's there somewhere. [grin]

Create an account

Register a new account

• Forum Statistics

• Total Topics
627783
• Total Posts
2979034

• 11
• 10
• 10
• 23
• 9