私は同じエラーで約5つの異なる質問を読んだが、私はまだ私のコードの問題を見つけることができません。C - 不完全な型への参照を間接参照
typedef struct graph graph_t;
の.h
main.cの
int main(int argc, char** argv) {
//graph_t * g = graph_create(128); //I commented this line out to make sure graph_create was not causing this.
graph_t * g;
g->cap; //This line gives that error.
return 1;
}
.C
struct graph {
int cap;
int size;
};
ありがとう!
いただきましエラー? –
@GregBrown:彼は不完全な型エラーへの逆参照ポインタを取得しています。 –