c++ - migrating from CodeBlocks 10.5 to 12.11 and got runtime error __static_initialization_and_destruction_0 -
i have upgraded codeblocks 10.5 12.11 version
everything working fine in previous version, got runtime error when compiling latest version of codeblocks
the call stack pointed main static class problem , show massage
0x0040f9ef in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
this code code
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 other member variable declaration
please, tell me i'm wrong, before
edit : game.cpp
Comments
Post a Comment