[computer-go] libego

Martin Møller Skarbiniks Pedersen traxplayer at gmail.com
Mon Oct 22 03:45:51 PDT 2007


On 21/10/2007, Chris Fant <chrisfant at gmail.com> wrote:
> Thanks.  I'm getting this when I compile.  Is gcc having a problem
> finding the standard library?  Any idea what I need to do to fix it?
> BTW, I'm no Linux expert.
>
> # make
> basic_go_types.cpp: In constructor 'player_t::player_t()':
> basic_go_types.cpp:76: warning: converting negative value
> '-0x000000001' to 'uint'
> board.cpp: At global scope:
> board.cpp:472: warning: 'flatten' attribute directive ignored
> uct.cpp:335: warning: 'flatten' attribute directive ignored
> /tmp/cceBZbqE.o(.text+0x5e): In function
> `getc_non_space(std::basic_istream<char, std::char_traits<char> >&)':
> main.cpp: undefined reference to `std::basic_istream<char,
> std::char_traits<char> >::get(char&)'
>

I guess your GCC installation is broken. The code compiles without
problems on my
linux machine:

tusk at skarbinika:~/programming/go/library-of-effective-Go-routines-0b604154ccc9$
g++ --version
g++ (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)


tusk at skarbinika:~/programming/go/library-of-effective-Go-routines-0b604154ccc9$
make
g++ -Wall   -O3 -march=i686 -fomit-frame-pointer -DDEBUG -ffast-math
-frename-registers   -o ego_opt   main.cpp


Regards
Martin


More information about the computer-go mailing list