| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| From: | "Gerrit P. Haase" <gp AT familiehaase DOT de> |
| Organization: | Esse keine toten Tiere |
| To: | "Alvin Ng" <rebooting AT hotmail DOT com>, cygwin AT cygwin DOT com |
| Date: | Sat, 1 Sep 2001 20:59:08 +0200 |
| MIME-Version: | 1.0 |
| Subject: | Re: Help needed for compilation of PHP 4 |
| Reply-to: | gp AT familiehaase DOT de |
| Message-ID: | <3B914C1C.16426.3146015A@localhost> |
| In-reply-to: | <LAW2-F118gTEP08uHeM0000bf92@hotmail.com> |
| X-mailer: | Pegasus Mail for Win32 (v3.12cDE) |
| X-Hops: | 1 |
| X-Sender: | 320081107336-0001 AT t-dialin DOT net |
Alvin Ng schrieb am 2001-09-01, 17:40:
>Hi,
>
>I am currently stuck with compiling PHP4 with the latest Cygwin
>distribution.
>
>Compiling PHP 4.0.6 would produce:
>
>....
>datetime.c: In function `php_mktime':
>datetime.c:187: wrong type argument to unary minus
>datetime.c: In function `php_date':
>datetime.c:437: invalid operands to binary /
>datetime.c:437: invalid operands to binary %
>datetime.c:445: wrong type argument to unary minus
>datetime.c:445: wrong type argument to unary minus
>datetime.c:498: invalid operands to binary /
>datetime.c:499: invalid operands to binary %
>make[3]: *** [datetime.lo] Error 1
>....
Hi,
Use:
-_timezone ...
instead of:
-timezone ...
<time.h> needs to be included and initialize with:
tzset();
Example:
========
/* print timezone */
#include <stdio.h>
#include <time.h>
int
main (void)
{
tzset();
printf( "timezone: %d\n", _timezone );
}
/* end of print timezone */
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |