头文件相互包含导致的错误 解决

时间:2021-12-20 16:46:46

expresstemplatemanager类中 #include“ Item.h”头文件。


但是,在Item类的头文件中,如果包含expresstemplatemanager.h头文件,那么vs2010就会编译出错。


解决方法:

在Item.cpp头文件中,包含expresstemplatemanager.h头文件,而不要放在Item.h中。

相关文章