Install libstdc++-5-dev-mips-cross by entering the following commands in the terminal:
sudo apt update sudo apt install libstdc++-5-dev-mips-cross
GNU Standard C++ Library v3 (development files)
This package contains the headers and static library files necessary for building C++ programs which use libstdc++. . libstdc++-v3 is a complete rewrite from the previous libstdc++-v2, which was included up to g++-2.95. The first version of libstdc++-v3 appeared in g++-3.0. . This package contains files for mips architecture, for use in cross-compile environment.