🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #2927

Function Difftime Error in Gnuchess 4.0.79

#2927
From: Joseph L. Hughey
Date: Fri, 20 Nov 1998 00:00
30 lines
1608 bytes
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
Technical Details
Message-ID: <3655C9D8.41C6@us.ibm.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,a71d9fac2befc08d,start
X-Google-Attributes: gid10d71d,public
From: "Joseph L. Hughey" <jhughey@us.ibm.com>
Subject: Function Difftime Error in Gnuchess 4.0.79
Date: 1998/11/20
Message-ID: <3655C9D8.41C6@us.ibm.com>
X-Deja-AN: 413973164
Content-Transfer-Encoding: 7bit
Organization: IBM
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: gnu.chess