Mail Archives: cygwin/1999/01/05/14:38:58
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 AT cygnus DOT com" with one line of text: "help".
- Raw text -