Mail Archives: djgpp/2001/02/01/16:35:09
> From: survivethis AT my-deja DOT com
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 01 Feb 2001 19:51:43 GMT
>
> I'm trying to compile a program named crafty (public chess program). I get
> the following error:
>
> gcc -c -fomit-frame-pointer -m486 -O3 -DCOMPACT_ATTACKS
> -DUSE_ATTACK_FUNCTIONS - DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DDOS egtb.cpp In
> file included from egtb.cpp:3228: tbdecode.h:79: warning: `cbEGTBCompBytes'
> initialized and declared `extern' gcc -fomit-frame-pointer -m486 -O3
> -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DUS E_ASSEMBLY_A -DUSE_ASSEMBLY_B
> -DDOS -c dgt.c as -o X86.o X86.s X86.s: Assembler messages: X86.s:4: Error:
> bad or irreducible absolute expression; zero assumed X86.s:30: Error: bad or
> irreducible absolute expression; zero assumed X86.s:45:
I'm guessing that X86.s is actually X86.S (with a capital .S), and
should be passed through the preprocessor before the assembler.
Try this from the command line and see if it works:
gcc -c X86.S
If it works, replace the command in the Makefile.
If that doesn't help, post the file X86.s here.
- Raw text -