Yes, I could reproduce the error with CXXFLAGS = -O0 and fixed it with the suggestions in http://stackoverflow.com/questions/11055802/static-and-extern-global-variables-in-c-and-c by replacing extern with const. <http://stackoverflow.com/questions/11055802/static-and-extern-global-variables-in-c-and-c> [[alternative HTML version deleted]]