Jump to content
  • Advertisement
Sign in to follow this  
akira32

ShaderX5 4.3 sample compile error

This topic is 3976 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 bought a book called "ShaderX5". I compiled the sample of "4.3 Alias-free Hard Shadows with Geometry Maps" with debug mode, it appears two error messages as below: 1>CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409 1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt I compile the sample by VC++ 2005(english) , DirectX SDK November 2007 and Windows SDK. I remove the manifest file from the project. And then compile again, there is no compile error during building. But memory leak appear in the output window after running of the project. Did anybody ever encounter the same problem? Did anybody ever solve the problem? [Edited by - akira32 on December 5, 2007 12:17:33 AM]

Share this post


Link to post
Share on other sites
Advertisement
Sometimes a complete clean and rebuild of the solution sorts these issues out. Either way, it's a general C++ compiler issue and nothing specific to DirectX so I'm moving this to a more appropriate forum.

hth
Jack

Share this post


Link to post
Share on other sites
I got the solution to solve the problem.

First, change the ID of RT_MANIFEST in the Recsource Window as 1001.

Second, remove the line of _CrtSetDbgFlag.

INT WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, int )
{
// Enable run-time memory check for debug builds.
#if defined(DEBUG) | defined(_DEBUG)
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!