Dorpsgek Bloody Mary

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
Eelco de Groot
Posts: 4720
Joined: Sun Mar 12, 2006 2:40 am
Full name:   Eelco de Groot

Re: Dorpsgek Bloody Mary

Post by Eelco de Groot »

Thanks Matthew, but I don't think I'm making much progress here. The idea was to make a 32 bit executable for Fernando, but if you can't do it on Linux, I suppose I don't have much chance making it with Windows... On top of that, the compiler I have is C++ and I think your program is C?

I just run into the same error, so I guess I must be doing something completely wrong...
Can your time.c work without having resource.h available for instance?
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
ZirconiumX
Posts: 1362
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Dorpsgek Bloody Mary

Post by ZirconiumX »

Yes, it can, but you need to add -DWINDOWS to the GCC command line.

As for C++ vs C, the makefile invokes GCC not G++, so you don't have to worry about that.

I might break out MSVC to get Fernando a compile.
tu ne cede malis, sed contra audentior ito
User avatar
fern
Posts: 8755
Joined: Sun Feb 26, 2006 4:07 pm

Re: Dorpsgek Bloody Mary

Post by fern »

You are very kind, but do not bother just for me.......

Fern
tmokonen
Posts: 1367
Joined: Sun Mar 12, 2006 6:46 pm
Location: Kelowna
Full name: Tony Mokonen

Re: Dorpsgek Bloody Mary

Post by tmokonen »

I made a 32 bit Windows compile and placed it here:

http://tmokonen.net84.net/Dorpsgek%20Bl ... %20w32.rar

Matthew, I did have to make one change in the code. The compiler (GCC 5.2.0) didn't like your

#define FILE(x) ((x)&7)

I am guessing because FILE is already defined in stdio.h for file handling functions. I renamed it to COL.

The PV display is also different than the 64 bit compile, not sure why, maybe because of a difference in the size of ints. It does seem to run fine though.