When I compile with ./gcc-arm-linux-gnueabihf-4.7-master/bin/arm-linux-gnueabihf-g++ -c Steph.cpp on an Ubuntu Linux 16.04 machine which already has gcc 5.3.1 installed:
I get the error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
even though I specify what the LD_LIBRARY_PATH is. Using strace, I verified that the libstdc++.so.6 at LD_LIBRARY_PATH is recognized and read.
I am using the GitHub download of gcc-arm-linux-gnueabihf-4.7-master. Does it have an install script which I forgot to do?
How do I fix this error?
The reason I ask this question is I want to cross compile with an ARMv6 forward compatible comilper a simple example using a shared library which is scheduled for testing on an Raspberry PI ARMV6 emulator Wheezy mounted on a SD card.
Earlier today I compiled the same simple example on an ARMv7 compiler, arm-linux-gnueabihf-g++ version 5.3.1 installed on the same Ubuntu Linux computer hosting a Raspberry PI arm v6 emulator installed on SD card mounted in an USB adapter and got Segmentation Fault when I ran this simple ARMV7 example's executable on this particular emulator.