Wednesday, January 20, 2010

error C2061: syntax error : identifier '_DebugHeapTag_func'

This compile error take place in debug mode only. If you got this compile error - explore your code find redefinitions for the "new" operator. Remove these redefinitions and compilation will succeed.

For example, in MFC application wizard insert following definition:

#ifdef _DEBUG
#define new DEBUG_NEW

Just remove these lines. That's all.

No comments: