由于 class 后的分号导致内部编译器错误
Internal compiler error because of semicolon after class
我用class写了一个小头文件。
#ifndef GAME_H
#define GAME_H
class Game{
private:
bool isRunning;
public:
bool IsRunning() const;
};
#endif
当我尝试编译它时,我得到
c:\Users\MainUser\Desktop\cpp_tests\src\Game.h:9:2: internal compiler error: in gt_pch_note_object, at ggc-common.c:276
};
^
删除没有用。
我该如何解决这个问题?
安装最新版本的 MinGW 解决了问题
我用class写了一个小头文件。
#ifndef GAME_H
#define GAME_H
class Game{
private:
bool isRunning;
public:
bool IsRunning() const;
};
#endif
当我尝试编译它时,我得到
c:\Users\MainUser\Desktop\cpp_tests\src\Game.h:9:2: internal compiler error: in gt_pch_note_object, at ggc-common.c:276
};
^
删除没有用。 我该如何解决这个问题?
安装最新版本的 MinGW 解决了问题