Page 1 of 1

xboard 4.4.2 on MacOS

PostPosted: 02 Feb 2010, 23:11
by jdart
I tried (after running configure --disable-sigint --enable-zippy) compiling on MacOS Leopard with gcc 4.2 and get this error:

g++-4.2 -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -I/usr/X11/include -I/usr/X11/include -MT backend.o -MD -MP -MF .deps/backend.Tpo -c -o backend.o backend.c
backend.c:332: error: invalid conversion from ‘char* (*)(const char*, int)’ to ‘int’
backend.c:333: error: expected ‘,’ or ‘;’ before ‘{’ token
make[1]: *** [backend.o] Error 1

Looks pretty odd - maybe the function name has a #define for it somewhere else?

Re: xboard 4.4.2 on MacOS

PostPosted: 02 Feb 2010, 23:46
by H.G.Muller
I have PosFlags declared on that line. You could be right. It could either be #defined or declared in one of the system includes.

Unfrtunately it is used in 3 files: parser.c, moves.c and backend.c, so it would take some effort to replace the name everywhere by something else. Due to bad programming practice (probably mine...) it is not even declared in a header file!