supertuxkart-sourceforge-migration / stk-migration-test

0 stars 0 forks source link

clang compilation error #805

Closed supertuxkart-sourceforge-migration closed 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria

/Users/max/supertuxkart/src/states_screens/offline_kart_selection.cpp:3:1: error:
      explicit specialization of 'singleton' after instantiation
DEFINE_SCREEN_SINGLETON( OfflineKartSelectionScreen );
^
/Users/max/supertuxkart/src/guiengine/screen.hpp:52:68: note:
      expanded from macro 'DEFINE_SCREEN_SINGLETON'
    template<> ClassName* GUIEngine::ScreenSingleton< ClassName >::singleton = NULL
                                                                   ^
/Users/max/supertuxkart/src/states_screens/offline_kart_selection.hpp:15:42: note:
      implicit instantiation first required here
        static bool isRunning() { return singleton!=NULL; }
                                         ^
supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Fix applied in latest SVN, thanks to SuperMat for testing