struct tm problem
Brian Dessent
brian@dessent.net
Tue May 24 07:12:00 GMT 2005
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/
More information about the Cygwin
mailing list