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
bitbases 3.3
Moderator: Ras
-
Roman Hartmann
- Posts: 295
- Joined: Wed Mar 08, 2006 8:29 pm
Re: bitbases 3.3
Hi,
what happens if you type 'g++ -lm -O3 -c -fPIC index_new.cpp' ?
note the '-lm'
Roman
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
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
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
-
Roman Hartmann
- Posts: 295
- Joined: Wed Mar 08, 2006 8:29 pm
Re: bitbases 3.3
Ok, I just asked google and read somewhere that you have to include <cstdlib> explicitly.
Roman
Roman
-
BBauer
- Posts: 658
- Joined: Wed Mar 08, 2006 8:58 pm
Re: bitbases 3.3
Thank you,
I had to include some libraries.
Kind regards
Bernhard
I had to include some libraries.
Kind regards
Bernhard