Gabrielkaos / ChessEngineGoobC

UCI playing Chess Engine written in C
GNU General Public License v3.0
3 stars 0 forks source link

compile on Linux : correct code #3

Open tissatussa opened 1 year ago

tissatussa commented 1 year ago

congratulations with the new version !

i'm on Linux and at first i could not compile your source. but inspecting your code, i found some basic mistakes. after correcting these, i managed to compile.

rename makefile.file to makefile

in makefile : add -lm at the end of the gcc line, otherwise an error occurs : undefined reference to 'pow' see eg. https://stackoverflow.com/questions/12824134/undefined-reference-to-pow-in-c-despite-including-math-h

add to misc.c : #include <string.h> otherwise strchr() is not defined

also you wrote the following includes between double quotes, but they should be within '<...>' :

#include <inttypes.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <windows.h>

HTH !

tissatussa commented 1 year ago

and Goob v1.8.9 is rather strong ! i guess its rating is 2900+

Gabrielkaos commented 1 year ago

Thanks for pointing out my mistakes, so happy it works