Subject: Re: Compiling gnuchess under gnu-win32 [Solution]
From: [email-masked] (Kent Perrier)

5 Jan 1999 14:38:58 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: "[email-masked]" <[email-masked]>

Kent Perrier wrote:
> 
> Has anyone compiled gnuchess under gnu-win32?  After I modified the
> makefile to look in /usr/local/include (so it can find curses.h)
> everything compiles fine until it comes to gnuan.c
> I get these two errors:
> 
> ./gnuan.c: In function 'InputCommand':
> ./gnuan.c:1727: too few arguments to function `difftime'
> make: *** [gnuan.o] Error 1
> /home/gnuchess-4.0pl79/src$
> 

The following fix was sent to me by Dr. Volker Zell.  It appears to fix
the problem.  The compile
is running right now and it is building its opening book database.

#ifndef __CYGWIN__
    elapsed_time = difftime(end_time - start_time);
    fprintf (fpout, "\n           Elapsed time was %ld seconds.\n",
elapsed_time);
#else
    fprintf (fpout, "\n           Elapsed time is missing in
CYGWIN.\n");
#endif

Kent
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".