My work configuration is that I have Ubuntu-20-based development workstation (exactly Linux Mint 20.1) where I develop application for Ubuntu 18. When I compile simple C or C++ program, upload it to the target machine and run, I receive the message:
./test: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./test)
./test: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./test)
Can I force the program to link to the older version? I use gcc 9 if it does matter.