2
votes

I'm trying to run the sample code from the book Physics for Game Programmers. I have installed the DirectX SDK June 2010 but get the following errors.

Cannot open include file: 'd3drmwin.h'
Cannot open include file: <d3drm.h>
Cannot open include file: <d3dtypes.h>

I believe I have added all necessary include and library paths and Additional Dependencies (D3D10.lib & D3DX10.lib) as I can access the header files d3d10.h and d3d9.h without any issues.

Any ideas how to get their code running? Is the code possibly referencing a old version of DirectX?

Edit: I have installed the SDK and Set up the following:

Project->Properties->VC++ Directories->Include Directories and added

C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;

Project->Properties->VC++ Directories->Library Directories and added

C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;

Project->Properties->Linker->Input and added

D3D10.lib;D3DX10.lib

Edit

Ok, I have figured out those header files belong to DirectX 8. So the latest SDK doesn't support them. Now i just have to figure out where to download the DirectX 8 SDK. Any ideas where to find it?

1
The problem is that the compiler can't find the header files you've listed, so you haven't added the proper include paths. It has nothing to do with the Direct X version; the errors specifically say they can't open the header files. - Ken White
I have added the set up steps I have done to the question. Any change you could have a look and tell me what I'm missing? Cheers - user346443

1 Answers

2
votes

Change the paths to the folders to use double quotes properly, as in

"C:\Program Files x86\Microsoft DirectX SDK June 2010\Include;" 

Windows is not a web browser; it's an operating system. It doesn't understand URL encoding as far as directory locations go. (I don't have the book, but it's probably a typo there.)