请问指针类型不匹配assignment from incompatible pointer type
「已注销」 2009-09-08 11:15:55 定义一个数据结构
typedef struct
{
float gray;
float area;
char name[PARTICLE_STR_LEN];
float mass;
struct particlePropertyType *nextparticleProperty;
} particlePropertyType;
particlePropertyType *prt;
particlePropertyType * particlePropertyTemp;
prt->nextparticleProperty=particlePropertyTemp;
用gcc编译说最后一句 warning: assignment from incompatible pointer type
仔细看了一下,一个是struct particlePropertyType* 类型的,一个是particlePropertyType *类型的。想请问这个警告怎么处理啊。