Moderators: hgm, Andres Valverde
proj=winboard
allobj= winboard.o backend.o parser.o moves.o lists.o \
gamelist.o pgntags.o wedittags.o wgamelist.o zippy.o \
wsockerr.o wbres.o wclipbrd.o woptions.o uci.o \
wengineoutput.o wevalgraph.o whistory.o wlayout.o \
wplugin.o wsnap.o
dotc= winboard.c backend.c parser.c moves.c lists.c \
gamelist.c pgntags.c wedittags.c wgamelist.c zippy.c \
wsockerr.c winboard.rc wclipbrd.c woptions.c uci.c \
wengineoutput.c wevalgraph.c whistory.c wlayout.c \
wplugin.c wsnap.c
# Currently WinBoard will build either with or without -mno-cygwin
# DO NOT DELETE
winboard.o: config.h ../common.h winboard.h resource.h ../frontend.h
winboard.o: ../backend.h ../lists.h ../moves.h wclipbrd.h wgamelist.h
winboard.o: wedittags.h woptions.h wsockerr.h defaults.h
backend.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
backend.o: ../parser.h ../moves.h ../zippy.h ../backendz.h
parser.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
parser.o: ../parser.h ../moves.h
moves.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
moves.o: ../moves.h ../parser.h
lists.o: config.h ../common.h ../lists.h
gamelist.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
gamelist.o: ../parser.h
pgntags.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
pgntags.o: ../parser.h
wedittags.o: config.h ../common.h winboard.h resource.h ../frontend.h
wedittags.o: ../backend.h ../lists.h
wgamelist.o: config.h ../common.h winboard.h resource.h ../frontend.h
wgamelist.o: ../backend.h ../lists.h
zippy.o: config.h ../common.h ../zippy.h ../frontend.h ../backend.h
zippy.o: ../lists.h ../backendz.h
wsockerr.o: wsockerr.h
winboard.o: resource.h
wclipbrd.o: config.h ../common.h winboard.h resource.h ../frontend.h
wclipbrd.o: ../backend.h ../lists.h wclipbrd.h
woptions.o: config.h ../common.h winboard.h resource.h ../backend.h
woptions.o: ../lists.h ../frontend.h woptions.h defaults.h wedittags.h
wengineoutput.o: config.h ../common.h winboard.h resource.h ../frontend.h
wevalgraph.o: config.h ../common.h winboard.h resource.h ../frontend.h
whistory.o: config.h ../common.h winboard.h resource.h ../frontend.h
wlayout.o: config.h ../common.h winboard.h resource.h ../frontend.h
wplugin.o: config.h ../common.h winboard.h resource.h ../frontend.h
wsnap.o: config.h ../common.h winboard.h resource.h ../frontend.h
wsnap.o: wsnap.h
$ make -f cygwin.mak
gcc -I. -I.. -mno-cygwin -g -c -o winboard.o winboard.c
gcc -I. -I.. -mno-cygwin -g -c -o backend.o ../backend.c
../backend.c: In function `HandleMachineMove':
../backend.c:5497: error: `NrW' undeclared (first use in this function)
../backend.c:5497: error: (Each undeclared identifier is reported only once
../backend.c:5497: error: for each function it appears in.)
../backend.c:5500: error: `bare' undeclared (first use in this function)
../backend.c:5503: error: `NrPiece' undeclared (first use in this function)
make: *** [backend.o] Error 1
Charles Browne wrote:I'd like to be able to compile it the way H.G. Muller showed in the below post but I haven't been able to, I guess since this is Windows Me and he showed a way using Windows 2000. But I'm happy being able to do it with a cygwin.mak file.
http://www.open-aurec.com/wbforum/viewt ... 6854#31739
H.G.Muller wrote:I would be very surprised if W.Me or W.2000 would make any difference, especially under cygwin. It would be then more likely that the cygwin version made a difference.
H.G.Muller wrote:It seems the above errors are genuine errors in the backend.c you have. Apparently a faulty backend.c got included in the source distribution.
make -f cygwin.mak
int NrW=0, bare=0,NrPiece=0;
/bin/sh: /c/program files/help workshop/hcrtf.exe: No such file or directory
make: *** [winboard.hlp] Error 127
flex -oparser.o -L parser.l
windres --use-temp-file --include-dir . winboard.rc -O coff -o wbres.o
gcc -O2 -mno-cygwin -mwindows -c *.c
gcc -mno-cygwin -mwindows *.o -lwsock32 -lwinmm -o winboard.exe
strip winboard.exe
rm *.o
windres --use-temp-file --include-dir .. winboard.rc -O coff -o wbres.o
In file included from gamelist.c:26:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
In file included from lists.c:29:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
In file included from moves.c:51:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
In file included from parser.c:11:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
In file included from pgntags.c:29:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/stdio.h:393: error: redefinition of 'putchar'
In file included from uci.c:26:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-
# Update the help file if necessary
#$(proj).hlp : $(proj).rtf
# $(HC) $(proj).hpj
# cat $(proj).err
allobj= winboard.o backend.o parser.o moves.o lists.o \
gamelist.o pgntags.o wedittags.o wgamelist.o zippy.o \
wsockerr.o wbres.o wclipbrd.o woptions.o uci.o \
wengineoutput.o wlayout.o wplugin.o wsnap.o \
whistory.o wevalgraph.o
dotc= winboard.c backend.c parser.c moves.c lists.c \
gamelist.c pgntags.c wedittags.c wgamelist.c zippy.c \
wsockerr.c winboard.rc wclipbrd.c woptions.c uci.c \
wengineoutput.c wlayout.c wplugin.c wsnap.c \
whistory.c wevalgraph.c
int NrW=0, bare=0,NrPiece=0;
# Update the help file if necessary
#$(proj).hlp : $(proj).rtf
# $(HC) $(proj).hpj
# cat $(proj).err
allobj= winboard.o backend.o parser.o moves.o lists.o \
gamelist.o pgntags.o wedittags.o wgamelist.o zippy.o \
wsockerr.o wbres.o wclipbrd.o woptions.o uci.o \
wengineoutput.o wlayout.o wplugin.o wsnap.o \
whistory.o wevalgraph.o
dotc= winboard.c backend.c parser.c moves.c lists.c \
gamelist.c pgntags.c wedittags.c wgamelist.c zippy.c \
wsockerr.c winboard.rc wclipbrd.c woptions.c uci.c \
wengineoutput.c wlayout.c wplugin.c wsnap.c \
whistory.c wevalgraph.c
rigao wrote:3- Change backend.c file so it can compile -> go to line 5443, create a new line (which will be 5444) and add:
- Code: Select all
int NrW=0, bare=0,NrPiece=0;
"/c/program files/help workshop/hcrtf.exe" -xn winboard.hpj
/bin/sh: /c/program files/help workshop/hcrtf.exe: No such file or directory
make: *** [winboard.hlp] Error 127
rigao wrote:5- Comment the lines of cygwin that try to make this help file (which anyway is OBSOLET): U will need to add three # so it will look like this after ur change:
- Code: Select all
# Update the help file if necessary
#$(proj).hlp : $(proj).rtf
# $(HC) $(proj).hpj
# cat $(proj).err
Return to WinBoard development and bugfixing
Users browsing this forum: No registered users and 8 guests