There is a problem compiling Ogre with MFC in debug mode, you get an error because of the MFC macro:
#ifdef _DEBUG #define new DEBUG_NEW
Which basically clobbers Ogre's debug new -
#define OGRE_NEW new (__FILE__, __LINE__, __FUNCTION__)
I'm trying to get MFC+Ogre to run merrily together in DEBUG mode, and I got it to compile with:
#ifdef _DEBUG #undef new #endif Ogre::Root * root = OGRE_NEW Ogre::Root( pluginsFile, "ogre.cfg", "Ogre.log" ); #ifdef _DEBUG #define new DEBUG_NEW #endif
But now, I get a runtime error: Ogre::InternalErrorException
Anybody else face/solve this problem?