Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: need help again to compile new crafty

Author: Dieter Buerssner

Date: 04:04:55 10/03/03

Go up one level in this thread


On October 02, 2003 at 17:21:04, ERIQ wrote:

>I use freebsd and forgot what I needed to change in makefile in order to get it
>to compile I use gcc33. It gets hung around "egtb.o(.eh_frame+0x11): undefinded
>reference to '__gxx_personality_v0' collect2:ld returned 1 exit status". etc
>etc.

You might try to change the second line

crafty: $(objects)
        $(CC) $(LDFLAGS) -o crafty $(objects) -lm  $(LIBS)

in the Crafty makefile to

crafty: $(objects)
        $(CPP) $(LDFLAGS) -o crafty $(objects) -lm  $(LIBS)

CPP stands for the C++ compiler, here. Using this in the link step, will
automatically link in the missing library needed to support C++. Perhaps it
could break other targets. A cleaner solution could be to have

LD = g++

in the system specific part of the makefile (and similar for other environments)

And  have

crafty: $(objects)
        $(LD) $(LDFLAGS) -o crafty $(objects) -lm  $(LIBS)


My snippet is from the source of 17.14. Perhaps it changed, but you should be
able to figure it out, then.

Regards,
Dieter



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.