I writing some ADT on C:
I have two file date.c and date.h
inside date.c I have:
typedef struct Date_t {
 int date;
 char* month;
 int year;
} Date;
inside date.h I have:
typedef Date pDate;
compiler gives me errors:
..\checking.h:15: error: syntax error before "pDate"
can somebody please explain what is wrong with my typedef, thanks in advance
EDIT:
with files all is ok, problem is, when I change my struct to:
struct Date_t {
     int date;
     char* month;
     int year;
    };
and pointer to:
typedef struct Date_t* pDate;
program works perfectly, so I want to understand the difference