C++ compile:

nano hello.cpp
// 'Hello World!' program
#include <iostream>
int main()
{
  std::cout << "Hello World!" << std::endl;
  return 0;
}
g++  hello.cpp -o hello

root@Arduino:/mnt/sda1# ./hello
./hello: can't load library 'libstdc++.so.6'

opkg update
opkg install libstdcpp

root@Arduino:/mnt/sda1# ./hello
Hello World!