Jump to content
  • Advertisement
Sign in to follow this  
vomiting_goblin

Direct X 9.c SDK Installation

This topic is 5411 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

Hi, I've been programming games for about 8 months now, using the Direct X 9.b SDK, but recently I tried to install 9.c, and I can't get my project to compile. All the paths to the include and lib files are correct, and I've downloaded the extras pack which is supposed to make the SDK work on MSVC++ 6.0 (which is what I'm using,) but it still wont compile. I don't get any link errors, just weird ones like what I have posted below.

c:\my documents\my received files\level editor(6)\level editor\inputengine.h(39) : error C2146: syntax error : missing ';' before identifier 'g_pDI'
c:\my documents\my received files\level editor(6)\level editor\inputengine.h(39) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
c:\my documents\my received files\level editor(6)\level editor\inputengine.h(39) : error C2501: 'g_pDI' : missing storage-class or type specifiers
c:\my documents\my received files\level editor(6)\level editor\inputengine.h(40) : error C2146: syntax error : missing ';' before identifier 'g_pMouse'
c:\my documents\my received files\level editor(6)\level editor\inputengine.h(40) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
c:\my documents\my received files\level editor(6)\level editor\inputengine.h(40) : error C2501: 'g_pMouse' : missing storage-class or type specifiers
 

Do I need to change or add any new libraries into the project settings? Has the 9.c update caused any to have different names? Same question goes for the header files aswell. Is there anything else I need to tweak to get this thing to work? Any help is much appreciated, Thanks.

Share this post


Link to post
Share on other sites
Advertisement
When you add the path in the Tools->Options->Directories dialog, make sure you move the each path to the TOP of the list it's in.

The "Platform SDK" which comes with MSVC 6 contains an older version of the DirectX headers and libs (DirectX 5 or 6 IIRC) from when MSVC 6 was released.

When compiling, MSVC searches the paths in the order you see them in the directories dialog; if you haven't moved the newer DirectX SDK paths to the top of the lists the compiler will find the Platform SDK version of dinput.h first - that version doesn't have any DirectInput 8 stuff.

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!