On Mon, May 23, 2005 at 06:34:21PM +0430, Alireza Ghasemi wrote: > Hello, > I have downloaded some c++ libraries and tried to download them.But All of > them give an error like : > "'struct tm' has no member called 'tm_gmtoff'" > (tm is defined as 'time_t t; time(&t);tm* ptm = localtime(&t);') > I guess that tm should be defined in ctime header. > What's the problem and what should I do? > Thanks
tm_gmtoff is not required by the standard: http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html However, it is an extension available in the Olson tzcode, which cygwin seems to use. Enabling it would seem to be a matter of setting -DTM_GMTOFF=tm_gmtoff and adding it to time.h. http://cygwin.com/acronyms#PTC -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/