Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Problem: Compiling Crafty

Author: Renze Steenhuisen

Date: 13:16:07 01/20/04

Go up one level in this thread


Thanks!

This saves a lot of time ;-)

On January 20, 2004 at 13:13:51, Robert Hyatt wrote:

>On January 20, 2004 at 09:42:51, Renze Steenhuisen wrote:
>
>>There is something wrong, but I don't directly see what it is. Anyone?
>
>two solutions.  Change the makefile so that it uses g++ rather than gcc to
>link the objects into an executable.
>
>Or add -lstdc++ as a LDFLAGS option to get the c++ library included as it
>should be.
>
>
>>
>>/** START **/
>>make target=LINUX \
>>        CC=gcc CXX=g++ \
>>        CFLAGS=' -Wall -pipe -D_REENTRANT -O3 \
>>                -fforce-mem -fomit-frame-pointer' \
>>        CXFLAGS= \
>>        LDFLAGS=' -lpthread' \
>>        opt=' -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
>>             -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
>>        asm=X86.o \
>>        crafty-make
>>make[1]: Entering directory `/home/afsth048/Crafty/code-19.6'
>>make[2]: Entering directory `/home/afsth048/Crafty/code-19.6'
>>gcc -lpthread -o crafty searchr.o search.o thread.o searchmp.o repeat.o next.o
>>nexte.o nextr.o history.o quiesce.o evaluate.o movgen.o make.o unmake.o hash.o
>>attacks.o swap.o boolean.o utility.o valid.o probe.o book.o data.o drawn.o
>>edit.o epd.o epdglue.o init.o input.o interupt.o iterate.o main.o option.o
>>output.o phase.o ponder.o preeval.o resign.o root.o learn.o setboard.o test.o
>>testepd.o time.o validate.o annotate.o analyze.o evtest.o bench.o egtb.o dgt.o
>>X86.o -lm
>>egtb.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
>>collect2: ld returned 1 exit status
>>make[2]: *** [crafty] Error 1
>>make[2]: Leaving directory `/home/afsth048/Crafty/code-19.6'
>>make[1]: *** [crafty-make] Error 2
>>make[1]: Leaving directory `/home/afsth048/Crafty/code-19.6'
>>make: *** [linux] Error 2
>>
>>/** END **/
>>
>>is it
>>  "egtb.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'"
>>and how should I resolve this problem?
>>
>>Thanks a lot in advance!
>>
>>Renze



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.