今天将OGRE1.7.4升级为1.8.1,运行时出现这样的错误。
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
下面这行出错了
CEGUI::OgreRenderer::bootstrapSystem(*mRoot->getRenderTarget(WINDOW_TITLE)); 搜了一下这里给出了答案
http://cegui.org.uk/forum/viewtopic.php?f=10&t=5951 好吧,CEGUIOgreRenderer 模块当时用的ogre1.7编译的,而现在ogre换成1.8应该从新编译CEGUIOgreRenderer 。