C error expected specifier-qualifier-list before ‘time_t’

Posted by ambika on Stack Overflow See other posts from Stack Overflow or by ambika
Published on 2010-02-22T06:01:29Z Indexed on 2010/03/11 5:18 UTC
Read the original article Hit count: 226

Filed under:

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?

© Stack Overflow or respective owner

Related posts about c