2
나는 프로젝트가 있고 프로젝트에있는 2 개의 파일은 query-structures.h
query-structures.c
로 지명된다. query-structures.h
의 내용경고 : 빈 선언에 쓸모없는 유형 이름
#include <stdint.h>
typedef struct user_identifier user_identifier;
extern user_identifier;
하고이 경고가 있기 때문에 왜 query-structures.c
지금 컴파일러 내가 이해할 수없는
warning: useless type name in empty declaration [enabled by default]
로 나에게 경고를주고있다
#include "query-structures.h"
struct user_identifier
{
uint64_t user_id;
};
입니다 내 프로젝트의 다른 파일에서 이것을 struct
사용해야합니다. 당신이 유형하지만 변수 이름 예를 들어
extern user_identifier;
를 선언하기 때문에