在a.h中声明
typedef struct a
{
int a;
}A;
extern A m_a;
void test_a(A *m);
在b.h中
#include "a.h"
typedef struct b
{
int b;
A *m_addr;
}B;
void test_b( A m_b_a;)
在b.c 和 b.h 中均不能使用A中的结构体定义新变量,只能使用a.h中已经声明的结构体变量m_a。
如何在b.h中也使用结构体A声明新的变量呢?