Sign in to follow this  
PoorManMe

"ID3DBlob" is undefined

Recommended Posts

I keep getting this error and I can't seem to figure out where this little sucker comes from. MSDN says that ID3DBlob is defined in the D3Dcompiler.h header file. I included that header file and added D3dcompiler.lib to additional dependencies and still no luck. Oddly enough ID3D10Blob works, but I'm using Direct3D 11. Any help?

Share this post


Link to post
Share on other sites
I should have read the msdn page a little more carefully, it says ID3DBlob is type defined as ID3D10Blob, so I guess it doesn't matter. Still don't understand why I can't just use ID3DBlob, and why they felt the need to type define it in the first place.

Share this post


Link to post
Share on other sites
Hidden
I found the problem. There's a d3d11.h file in the Windows SDK directory as well as the one in the directx sdk. Visual C++ was using the one from the windows sdk, so I just removed the directory from my project.

Share this post


Link to post
I got it. VC++ was including the d3d11.h file from the Windows SDK and not the DirectX SDK. I just had to add the include directory for DirectX before the include directory for the Windows SDK in the VC++ Directories. Thanks for the help everyone.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this