从CodeBlocks 10.5迁移到12.11并获得运行时错误__static_initialization_and_destruction_0

时间:2013-04-06 08:56:49

标签: c++ codeblocks

我刚刚将我的代码块从10.5升级到12.11版本

在以前的版本中一切正常,但在编译最新版本的代码块时出现运行时错误

调用堆栈指向问题的主要静态类并显示此按钮

0x0040f9ef in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)

这是代码我的代码

game.hpp

...
class Game
{
public:
//... static Member function
private:
    static sf::RenderWindow _mainWindow;
//..... static member variable
};

game.cpp

... function declaration
sf::RenderWindow Game::_mainWindow; //Runtime Error happen here
//and the other member variable declaration
请告诉我我哪里错了,谢谢

编辑:game.cpp

0 个答案:

没有答案