【发布时间】:2010-11-01 00:31:40
【问题描述】:
在调试模式下使用 MFC 编译 Ogre 时出现问题,由于 MFC 宏而出现错误:
#ifdef _DEBUG #define new DEBUG_NEW这基本上破坏了 Ogre 的新调试 -
#define OGRE_NEW new (__FILE__, __LINE__, __FUNCTION__)我试图让 MFC+Ogre 在 DEBUG 模式下一起愉快地运行,我得到了它的编译:
#ifdef _DEBUG #undef 新 #万一 Ogre::Root * root = OGRE_NEW Ogre::Root( pluginsFile, "ogre.cfg", "Ogre.log" ); #ifdef _DEBUG #define new DEBUG_NEW #万一但是现在,我得到一个运行时错误:Ogre::InternalErrorException
还有其他人面临/解决这个问题吗?
【问题讨论】: