C error expected specifier-qualifier-list before ‘time_t’
- by ambika
I got the error
from error.c:31:
/usr/include/ap/mas.h:254: error: expected specifier-qualifier-list before ‘time_t’
make: *** [error.o] Error 1
Feedback
We at least need to see line 31 of error.c and line 254 of mas.h, with preferably a few lines of context around each. This error may have nothing to do with how time_t is being declared. – John Bode
Then I check
in error.c (line no 31) -- #include "mas.h"
then I check line no 254 in mas.h.
in mas.h
#include <sys/types.h>
typedef struct _x{
time_t time;
}x;
Can anybody suggest where I am going wrong?