bitbases 3.3

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

bitbases 3.3

Post by BBauer »

Hallo,
I need some help in compiling the new library for Daniel Shawul's bitbases.

I get.

g++ -O3 -c -fPIC index_new.cpp
index_new.cpp: In function 'void init_indices()':
index_new.cpp:84: error: 'abs' was not declared in this scope
index_new.cpp:142: error: 'abs' was not declared in this scope

Any Ideas?
Kind regards
Bernhard
User avatar
Roman Hartmann
Posts: 295
Joined: Wed Mar 08, 2006 8:29 pm

Re: bitbases 3.3

Post by Roman Hartmann »

Hi,
what happens if you type 'g++ -lm -O3 -c -fPIC index_new.cpp' ?

note the '-lm'

Roman
BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: bitbases 3.3

Post by BBauer »

I get the same:
g++ -lm -O3 -c -fPIC index_new.cpp
index_new.cpp: In function 'void init_indices()':
index_new.cpp:84: error: 'abs' was not declared in this scope
index_new.cpp:142: error: 'abs' was not declared in this scope

kind regards
Bernhard
User avatar
Roman Hartmann
Posts: 295
Joined: Wed Mar 08, 2006 8:29 pm

Re: bitbases 3.3

Post by Roman Hartmann »

Ok, I just asked google and read somewhere that you have to include <cstdlib> explicitly.

Roman
BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: bitbases 3.3

Post by BBauer »

Thank you,
I had to include some libraries.

Kind regards
Bernhard