alekmaul, i had the same problem(s) as you described this is how i solved it :
- in the makefile i removed the include dir of the mipsel-linux include dir (-I$(MIPSTOOLS)/mipsel-linux/include )
- in the source files you probably have this : #include <string.h> change it to #include "string.h" etc
this will solve the error you mentioned above, i did had another error with c++ that i could fix, the error(s) where these :
./sokoban.o:(.rodata._ZTI7CPlayer[_ZTI7CPlayer]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
./sokoban.o:(.rodata._ZTI5CSpot[_ZTI5CSpot]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
./sokoban.o:(.rodata._ZTI4CBox[_ZTI4CBox]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
./sokoban.o:(.rodata._ZTI10CWorldPart[_ZTI10CWorldPart]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
./sokoban.o:(.rodata._ZTI5CWall[_ZTI5CWall]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
./sokoban.o:(.rodata._ZTI6CFloor[_ZTI6CFloor]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
./sokoban.o:(.rodata._ZTI6CEmpty[_ZTI6CEmpty]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
these errros came due to the use of a base class with virtual functions... and it was always the same error, you can solve that one by adding "-fno-rtti" the the CFLAGS and do a complete rebuild (prefereably a clean first)
it could also be that certain function(s) are not availible yet, you can just search for another impelemention on google then ...