This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: struct tm problem


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]