delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <429298D1.61EB326C@dessent.net> |
Date: | Mon, 23 May 2005 20:00:33 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: struct tm problem |
References: | <000501c5600b$120c9b50$f52fb5d5 AT keloasc60pobkb> |
X-IsSubscribed: | yes |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |