方法1:用define定义
a.h中
#ifndef headerUsing_a_h
#define headerUsing_a_h
#include "b.h"
void funcA();
void funcA1();
#endif
b.h中
#ifndef headerUsing_b_h
#define headerUsing_b_h
#include "a.h"
void funcB();
void funcB1();
#endif
方法2:用program once 新型编译器支持
<pre name="code" class="objc">#pragma once
#include "b.h"
void funcA();
void funcA1();
b.h中也要加
方法3:用@class 类名