[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem to compile gtkcookie



On Sat, Apr 14, 2001 at 01:09:52PM +0200, Dr. Guenter Bechly wrote:
 
> gtkcookie.c: At top level:
> gtkcookie.c:317: storage size of `glbl_selected_time' isn't known
> make[1]: *** [gtkcookie.o] error 1
> make[1]: Leaving directory `/home/gb-data/debian/ITA/gtkcookie-0.03'
> make: *** [build] error 2
> 
> 
> The source of gtkcookie.c contains the following code at this line:
> 
> /* we need a time struct to throw the results of strptime() into */
> static struct tm glbl_selected_time;
> 
> /* we also need a time_t global var to convert glbl_selected_time from */
> static time_t glbl_selected_time_sec;
> 
> 
> Any libraries missing, or what else could be the problem???

That has nothing to do with the gtk version. struct tm is in time.h
which used to be included by sys/time.h. Probably you just need
another include. Make

#include <sys/time.h>

to 

#include <sys/time.h>
#include <time.h>


cu
	Torsten

Attachment: pgpVlerAmKkmi.pgp
Description: PGP signature


Reply to: