Original Post
I have a program that needs to use a struct object declared in another file. Basically, the main file includes a header file, and the struct is declared and defined in the implementation file of the header (which is not explicitly included in the main file): implementation file: typedef struct vehicle { int x,y; int dir,speed; int color; int score; } car[2]; In my main file, I had the following: extern vehicle car[2]; And when I tried to compile it, I got the following error: "'vehicle' does not name a type" I have no clue why this is happening....any ideas? Thanks in advance