• Advertisement
Sign in to follow this  

#include <xnamath,h> doesn't work

This topic is 2086 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 tried to #include <xnamath.h> but it saids the file isn't found. I already added d3d11.lib, dxerr.lib and d3d11.lib. I also added $(DXSDK_DIR)Lib\x86 and $(DXSDK_DIR).

anything else I need to add?

help!!

Share this post


Link to post
Share on other sites
Advertisement
Don't confuse different things: .lib files are binary libraries of compiled code and $(DXSDK_DIR)Lib\x86 looks like the directory where the compiler would find the ones that come with the DirectX SDK; both are unrelated to the #include <xnamath.h>statement in your code: the directive includes a library header named "xnamath.h" in your source, and the compiler looks for headers in search paths that are completely independent from those for libraries.

You should look for a file named "xnamath.h" (presumably inside some XNA or DirectX SDK installation) and add its path to the list of header search paths you pass to the compiler.

Share this post


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

  • Advertisement