nkarve / surge

A fast bitboard-based chess move generator in C++
MIT License
59 stars 15 forks source link

Unresolved reference error while trying to setposition #22

Closed Lordsedion closed 1 year ago

Lordsedion commented 1 year ago

I am trying to set the board initial position but I keep on getting undefined reference error. ---

$ g++ chess.cpp C:/Program Files/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\user\AppData\Local\Temp\ccyXLCCP.o:chess.cpp:(.text+0x66): undefined reference to `Position::set(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, Position&)' collect2.exe: error: ld returned 1 exit status

What might be causing this problem? Thanks in advance for your help.