Advertisement Jump to content
Sign in to follow this  

Macro redefined "D3D11_ERROR"after having installed the VS2012

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

After installing the VS2012 on WIN7(And also had the lastest Windows Update),


When i compile, WARNING C4005 Occurs,which never happened before.


And the repeated  definitions are in D3D11.H and WINSDK8.0.H,


how to fix this problem???Help!!


Just use the #pragma disabled? (That's some kind of irresponsibility= =)

Edited by LetsMakeSomeNoise

Share this post

Link to post
Share on other sites

I'm guessing that you're using the headers and libs from the older DirectX SDK? If so, there are steps you have to take in order to make sure that the older headers don't conflict with the new version of the SDK that's included as part of the Windows 8 SDK (which is what VS 2012 uses by default). There are instructions here that can help you get up and running.


Also, please don't use such a large font size when posting.

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!