Sign in to follow this  

ShaderX5 4.3 sample compile error

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

This topic is 3666 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.

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