• Advertisement
Sign in to follow this  

Quick help needed: DirectInput8Create

This topic is 4685 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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?
Thanks for your help

Share this post


Link to post
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 this post


Link to post
Share on other sites
Quote:
Original post by guitarguy310
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)


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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement