Why can't I create an opaque data type?
问题 I'm trying to experiment with opaque data types to get an understanding of them. The main problem is that I keep getting an 'incomplete' error. main.c #include <stdio.h> #include <stdlib.h> #include "blepz.h" int main() { setfnarp(GOO,5); int loogaboo = getfnarp(GOO); printf("%i", loogaboo); return 0; } fnarpishnoop.c #include "blepz.h" struct noobza { int fnarp; }; void setfnarp(struct noobza x, int i){ x.fnarp = i; }; int getfnarp(struct noobza x){ return x.fnarp; }; blepz.h struct noobza;