回忆下C++全局变量跨文件应该怎么使用:你这些报错都是你在 header file 定义的全局变量,用法错了
提示一下 修饰符 extern
https://blog.csdn.net/muren/article/details/113766496