Sign in to follow this  
guitarguy310

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


Link to post
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?
Thanks 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this