How do I run a C++20 program on a Raspberry Pi 1B?

256 Views Asked by At

The Raspberry Pi 1B has an armv6 architecture. I have gone to https://github.com/tttapa/docker-arm-cross-toolchain and installed the armv6-rpi-linux-gnueabihf compiler toolchain on a more modern Linux machine. I have then compiled my project and moved the executable to my Raspberry Pi. Executing the program gives

./my_executable: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./my_executable)
./my_executable: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by ./my_executable)
./my_executable: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by ./my_executable)

Going to Where can I find GLIBCXX_3.4.29? and following the instructions did not throw up any errors but did not resolve the issue.

Is the answer to build a standalone binary somehow? Or maybe there's a C++20 compiler that runs on the Raspberry Pi? What else can I try?

0

There are 0 best solutions below