Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Till the point I reached in does and some egtb.cpp warnings

Author: Pete Galati

Date: 16:19:39 10/25/99

Go up one level in this thread


On October 25, 1999 at 18:08:31, Michel Langeveld wrote:

>On October 25, 1999 at 16:18:44, Pete Galati wrote:
>
>>On October 25, 1999 at 16:07:46, Michel Langeveld wrote:
>>
>>>Just to make it an challenge.
>>>At least I can't do it very easily....
>>>Would be great if the latest gnu compiler is used...
>>>
>>>regards,
>>>
>>>Michel Langeveld
>>
>>I can still compile it for Dos, I have to edit the x86.s file, that was the only
>>obstacle for me.  You might be very close and not realize it.
>>
>>The top line in my x86.s file now says "alignment = 4" but it used to say
>>"alignment = align".  I'd welcome any other suggestions, but that worked for me,
>>there were no other changes to code at all.  Try something like that.
>>
>>Pete
>
>Hmm... maybe DOS is also a good try to start.
>I made it to:
>
>gcc -c -fomit-frame-pointer -mpentium -O3 -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIO
>NS -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DDOS egtb.cpp
>In file included from egtb.cpp:3212:
>tbdecode.h:79: warning: `cbEGTBCompBytes' initialized and declared `extern'
>egtb.cpp:3221: warning: `TB_CRC_CHECK' initialized and declared `extern'
>gcc -fomit-frame-pointer -mpentium -O3 -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS
>-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DDOS -c egtbpv.c
>gcc -fomit-frame-pointer -mpentium -O3 -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS
>-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DDOS -c dgt.c
>gcc -fomit-frame-pointer -mpentium -O3 -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS
>-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DDOS -c X86.c
>X86.c: In function `__declspec':
>X86.c:51: parse error before `AttacksDiaga1Func'
>make.exe: *** [X86.o] Error 1
>
>C:\CRAFTY16>

I forgot I compile it useing this batch file, and for djgpp it seems to sidestep
problems:

gcc -fomit-frame-pointer -m486 -O3 -c egtb.cpp
gcc -fomit-frame-pointer -m486 -O3 -c x86.c x86.s
make

one of the things that it does is compiles the two x86 files together, and I've
alway had trouble with the egtb.cpp C++ file so there's something in there to
handle that too.

Also with djgpp you need to make sure you have cc1, cc1obj, & cc1plus.exe files
in the bin, there's probably more related to that group, so if you don't have
those, you might be missing something vital.

Pete



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.