构造体定义在.h文件里 报conflicting types错
结构体定义在.h文件里 报conflicting types错.h文件typedef struct TT{} fileinfovoid tttest(struct fil
结构体定义在.h文件里 报conflicting types错
.h文件
typedef struct TT
{
} fileinfo;
void tttest(struct fileinfo*);
.c文件
#include "stc.h"
void tttest(struct fileinfo* fi)
{
}
gcc -c stc.c就报这个错
[解决办法]定义端void tttest(struct fileinfo* fi)
不需要加struct