Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Xgkkp

DirectInput 8 compling proble.. solved, but why?

This topic is 5924 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 had a problem when using DirectInput (it wouldn''t compile and gave the message: syntax error : missing '';'' before ''*'' error : ''IDirectInput8'' : missing storage-class or type specifiers error : ''g_pDirectinput'' : missing storage-class or type specifiers I searched the forums, and solved the problem by moving up the library include order to the top of the directories list. My question: Why does changing the order fix the problem?

Share this post


Link to post
Share on other sites
Advertisement
It was probably including an older version of the DirectX library that didn''t have IDirectInput8 defined (like the DirectX 7 (or earlier) headers that come with Windows), so when you moved the new library directory to the top it searched there first and found the correct version.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!