Jump to content
  • Advertisement
Sign in to follow this  
viper110110

#include isn't working

This topic is 2278 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 am trying to follow http://www.rastertek.com/dx11tut03.html

After putting all the code in, I realized that I should be using DirectXMath.h instead of d3dx10math.h because the old one couldn't be found.

After switching to DirectXMath, I tried to switch one of the D3DXMATRIX to XMMATRIX and it couldn't find it. I used visual studio to go to DirectXMath.h and I found XMMATRIX, but it isn't working with the include and the compiler gives an error on XMMATRIX (not on the #include <DirectXMath.h> line). I also tried changing D3DX_PI to XM_PI and it didn't work either.

Share this post


Link to post
Share on other sites
Advertisement
Did you update the include path?
Otherwise If you did, then move it to the front of PATH and see if it was a collision.

Share this post


Link to post
Share on other sites
I don't think it's an include problem. Everything in DirectXMath.h is in the DirectX namespace. The simplest way to fix this is to add "using namespace DirectX;" to the top of your cpp file.

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!