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

来源:互联网 发布:西安软件新城楼盘 编辑:程序博客网 时间:2024/04/29 22:17

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


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


解决方法:

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

0 0