Author: Joshua Haglund
Date: 02:34:56 03/19/05
Go up one level in this thread
On March 19, 2005 at 03:46:09, Fabien Letouzey wrote: >On March 19, 2005 at 03:23:11, Joshua Haglund wrote: > >>// abs undeclared. Incomplete code? > >abs() is an ANSI function; insert the appropriate #include<> >Is it <cstdlib>? > >Fabien. I inserted #include <stdlib.h> It compiled fine with now undeclared abs. After this, though. I create a UCI engine in CB GUI. No moves appear. and then it crashes after a couple of moves. g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c attack.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c board.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c eval.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c main.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c search.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c fen.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c hash.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c list.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c material.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c move.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c move_check.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c search_full.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c move_do.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c move_evasion.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c move_gen.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c move_legal.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c option.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c pawn.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c piece.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c posix.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c protocol.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c pst.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c pv.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c random.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c recog.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c see.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c sort.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c square.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c trans.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c util.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c value.cpp g++ -O3 -pipe -fstrict-aliasing -fno-exceptions -fno-rtti -fomit-frame-pointer -c vector.cpp g++ -o friuttoga.exe search_full.o move_evasion.o list.o posix.o material.o hash.o fen.o board.o attack.o eval.o option.o main.o search.o move_do.o move_gen.o move_legal.o move.o pv.o pst.o see.o sort.o square.o random.o recog.o trans.o piece.o util.o value.o vector.o protocol.o pawn.o move_check.o fruittoga.exe See anything wrong with the way I compiled? need -lm? Joshua Haglund toneewa@yahoo.com
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.