Michel wrote:Yes
- Code: Select all
gcc -mno-cygwin -s -O2 *.c -o polyglot.exe
should normally work from a Cygwin bash shell (this is the command I use).
Michel,
Thank you, I will give it a try later.
Please note that the option -mno-cygwin is not longer accepted by the latest and greatest cygwin installation (I installed cygwin latest version few days ago). The compiler says to use a MinGW compiler (or something like that). What version of cygwin do you use? And, so, if you compile the windows polyglot exes under cygwin, can I safely assume that you do this under Windows?
I am going to try to compile as you suggest under Code::Blocks, or maybe under MS Visual C++ Express Edition 2010.
To F. Blumers,
Fonzy, I will quote from file makefile.ms included in the latest 1.4w27 release.
- Code: Select all
# Makefile for use with Microsoft tools
# > nmake -f makefile.ms
CC = cl
CFLAGS = -nologo -c -O2 -Ox -D "NDEBUG"
LFLAGS = -nologo
# Disable affinity use? (Needed for Win95 support)
#CFLAGS += -D "NO_AFFINITY"
EXE = polyglot.exe
OBJS = adapter.obj attack.obj board.obj book.obj book_make.obj \
book_merge.obj colour.obj engine.obj epd.obj fen.obj game.obj \
hash.obj io.obj line.obj list.obj main.obj move.obj move_do.obj \
move_gen.obj move_legal.obj option.obj parse.obj pgn.obj \
piece.obj posix.obj random.obj san.obj search.obj square.obj \
uci.obj uci_options.o util.obj
$(EXE): $(OBJS)
$(CC) $(LFLAGS) $(OBJS) -o $(EXE)
clean:
-erase $(OBJS) $(EXE)
.cpp.obj:
$(CC) $(CFLAGS) $<
The compiler exits saying that does not know how to create uci_options.o, shoudn't this file be uci_options.obj? After changing to uci_options.obj, compiles and builds the polyglot.exe just fine, with the exception mentioned below.
Additionally, my compiler complains that the option -o is now deprecated, maybe this is something that MSVC does, I do not know I am just passing that information to you.
Regards to all,
matematiko
One that does not live to serve, does not deserve to live.