Ive been trying to compile a version of the Crafty Chess program (open source chess engine written in C) on my Mac (OSX 10.4).
When I try to compile using a provided Makefile, I get all sorts of errors which makes me think that the problem is with how I have GCC set up (however I can compile small c programs with gcc)
Attached is the Makefile (I had to put a .txt extension of it so it would attach on flashkit)
Anybody have some ideas what could be wrong?
Last edited by Dricciotti; 01-01-2008 at 04:08 PM.
About 1000 errors pop up when I compile, but here is a sample of what it looks like:
>> make darwin
make target=FreeBSD \
CC=gcc CXX=g++ \
CFLAGS=' -Wall -pipe -O3' \
CXFLAGS= \
LDFLAGS= \
LIBS='-lstdc++' \
opt='' \
crafty-make
gcc -Wall -pipe -O3 -DFreeBSD -c crafty.c
In file included from searchr.c:4,
from crafty.c:1:
chess.h:30:17: warning: missing whitespace after the macro name
In file included from chess.h:129,
from searchr.c:4,
from crafty.c:1:
lock.h:1:6: error: token "=" is not valid in preprocessor expressions
In file included from searchr.c:4,
from crafty.c:1:
....
After that, almost every error is of the following types:
1) dereferencing pointer to incomplete type
2) request for member in something not a structure or union