🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #2962

Re: Function Difftime Error in Gnuchess 4.0.79

#2962
From: Gil Elias
Date: Sun, 13 Dec 1998 00:00
41 lines
2081 bytes
I ran into this problem too, just change DiffTime(A-B) to DiffTime(A,B),
I don't remeber the exact
file, so just use 'grep -i difftime *.c'.

Joseph L. Hughey wrote:

> Re:
>      Date:
>         Thu, 01 Oct 1998 18:59:00 -0500
>      From:
>         jose@fractal.cimat.mx (Jose de Jesus Garcia R)
>        ---------------------------------------------
>      >>    I have dowloaded gnuchess 4.0.79; but it does
>      >>  not get compiled. There appears the following
>      >>  error messages:
>      >>
>      >>/gnuan.c: In function `InputCommand':
>      >>/gnuan.c:1727: too few arguments to function `difftime'
>      *** Error code 1
>      >>make: Fatal error: Command failed for target `gnuan.o'
>
>      >>        I can repeat the error. Tell me if more
>      >>  information is neccesary.
>
> I have observed the same problem on an AIX/xlC system.  Examination
> of the source code and the include files with 'grep -i difftime' do
> not show the existence of the function 'difftime'.  My guess is that
> this belongs to another compiler type, or the coding for difftime()
> was left out.  I am new at this too, so I am not sure IF 'difftime'
> is intended to convert one time format into another.  If you can
> verify it is not, then change the difftime part of
> 'C = difftime(A-B)' to 'C = (double)(A-B)'.
>
> Regards,
>
> Joey


Regards,

Elias Gil
Technical Details
Message-ID: <3673CC38.6AE2870D@zapex.co.il>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3655C9D8.41C6@us.ibm.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,a71d9fac2befc08d
X-Google-Attributes: gid10d71d,public
From: Gil Elias <gile@zapex.co.il>
Subject: Re: Function Difftime Error in Gnuchess 4.0.79
Date: 1998/12/13
Message-ID: <3673CC38.6AE2870D@zapex.co.il>
X-Deja-AN: 421801171
Content-Transfer-Encoding: 7bit
References: <3655C9D8.41C6@us.ibm.com>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@netvision.net.il
X-Trace: news.netvision.net.il 913558639 19880 199.203.146.15 (13 Dec 1998 14:17:19 GMT)
Organization: Zapex Research (Israel)
Mime-Version: 1.0
NNTP-Posting-Date: 13 Dec 1998 14:17:19 GMT
Newsgroups: gnu.chess