From: kent.perrier@pgs.com (Kent Perrier)
Subject: Re: Compiling gnuchess under gnu-win32 [Solution]
5 Jan 1999 14:38:58 -0800
Message-ID: <369231B9.FFB7D21C.cygnus.gnu-win32@pgs.com>
References: <368BA1F8.70ABDC7D@pgs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: "gnu-win32@cygnus.com" <gnu-win32@cygnus.com>

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
"gnu-win32-request@cygnus.com" with one line of text: "help".
