This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: struct tm problem
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 23 May 2005 20:00:33 -0700
- Subject: Re: struct tm problem
- References: <000501c5600b$120c9b50$f52fb5d5@keloasc60pobkb>
- Reply-to: cygwin at cygwin dot com
Alireza Ghasemi wrote:
> 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);')
In general you will get much better help if you indentify the actual
library you're trying to compile, or paste actual code, or better yet, a
simple standalone testcase.
> I guess that tm should be defined in ctime header.
> What's the problem and what should I do?
The tm_gmtoff member of struct tm is not a part of any standard. It's
present on some BSD systems and glibc, but it's not required by
posix/ISO standards. Whatever code you're compiling needs to be
modified because it's not portable.
Brian
--
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/