gcc compiler error class keyword is needed