Hi everybody,
I'm busy with compiling winboard (the win32 version of xboard -- ftp://ftp.gnu.org/pub/gnu/winboard-4_2_6-src.tar.gz ). I made this makefile based on cygwin.mak (included in the source tarball) and I ran into problem. (I changed none of the source files.)
The problem is probably one of the wine header files because the compiler gives this output:
winegcc -I. -mwindows -mno-cygwin -g -c -o winboard.o winboard.c In file included from /usr/local/include/wine/windows/windows.h:55, from winboard.c:54: /usr/local/include/wine/windows/mmsystem.h:69: parse-fout voor stringconstante Error: gcc failed. make: [winboard.o] Fout 2 (genegeerd) winegcc -I. -mwindows -mno-cygwin -g -c -o backend.o backend.c flex -L parser.l cp lex.yy.c parser.c winegcc -I. -mwindows -mno-cygwin -g -c -o parser.o parser.c winegcc -I. -mwindows -mno-cygwin -g -c -o moves.o moves.c winegcc -I. -mwindows -mno-cygwin -g -c -o lists.o lists.c winegcc -I. -mwindows -mno-cygwin -g -c -o gamelist.o gamelist.c winegcc -I. -mwindows -mno-cygwin -g -c -o pgntags.o pgntags.c winegcc -I. -mwindows -mno-cygwin -g -c -o wedittags.o wedittags.c In file included from /usr/local/include/wine/windows/windows.h:55, from wedittags.c:26: /usr/local/include/wine/windows/mmsystem.h:69: parse-fout voor stringconstante Error: gcc failed. make: [wedittags.o] Fout 2 (genegeerd) winegcc -I. -mwindows -mno-cygwin -g -c -o wgamelist.o wgamelist.c In file included from /usr/local/include/wine/windows/windows.h:55, from wgamelist.c:26: /usr/local/include/wine/windows/mmsystem.h:69: parse-fout voor stringconstante Error: gcc failed. make: [wgamelist.o] Fout 2 (genegeerd) winegcc -I. -mwindows -mno-cygwin -g -c -o zippy.o zippy.c winegcc -I. -mwindows -mno-cygwin -g -c -o wsockerr.o wsockerr.c res --use-temp-file winboard.rc -O coff -o wbres.o make: res: Commando niet gevonden make: [wbres.o] Fout 127 (genegeerd) winegcc -I. -mwindows -mno-cygwin -g -c -o wclipbrd.o wclipbrd.c In file included from /usr/local/include/wine/windows/windows.h:55, from wclipbrd.c:26: /usr/local/include/wine/windows/mmsystem.h:69: parse-fout voor stringconstante Error: gcc failed. make: [wclipbrd.o] Fout 2 (genegeerd) winegcc -I. -mwindows -mno-cygwin -g -c -o woptions.o woptions.c In file included from /usr/local/include/wine/windows/windows.h:55, from woptions.c:26: /usr/local/include/wine/windows/mmsystem.h:69: parse-fout voor stringconstante Error: gcc failed. make: [woptions.o] Fout 2 (genegeerd) winegcc -I. -mwindows -mno-cygwin -mwindows -Xlinker "-e" -Xlinker "_mainCRTStartup" -g -mno-cygwin 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 \ -lwsock32 -lcomctl32 -lwinmm -lkernel32 \ -ladvapi32 -luser32 -lgdi32 -lcomdlg32 -lwinspool \ -o winboard.exe gcc: -e: linker input file unused because linking not done gcc: _mainCRTStartup: linker input file unused because linking not done Error: Can n��lllllll Error: /usr/local/bin/winewrap failed. make: [winboard.exe] Fout 2 (genegeerd) [root@erwin winboard]# ock32 -lcomctl32 -lwinmm -lkernel32 \
-ladvapi32 -luser32 -lgdi32 -lcomdlg32 -lwinspool \ -o winboard.exe
bash: ock32: command not found [root@erwin winboard]# gcc: -e: linker input file unused because linking not done bash: gcc:: command not found [root@erwin winboard]# gcc: _mainCRTStartup: linker input file unused because linking not done bash: gcc:: command not found [root@erwin winboard]# Error: Can n��lllllll bash: Error:: command not found [root@erwin winboard]# Error: /usr/local/bin/winewrap failed. bash: Error:: command not found [root@erwin winboard]# make: [winboard.exe] Fout 2 (genegeerd)
As you can clearly see, some of the files compile correctly but 5 files have a problem with a header file called mmsystem.h.
If anyone can fix this we have another program for the Fun Projects page :).
-- E.C.F. Wolff