Water's Home

Just another Life Style

0%

./xxx: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./xxx)

Copy libstdc++.so.6.0.24 from cross compiler (7.3.1)

cd /usr/lib
mv libstdc++.so.6 libstdc++.so.6.bak
ln -s libstdc++.so.6.0.24 libstdc++.so.6
chmod 777 libstdc++.so.6

Now, it will be like this !

root@imx6ul7d:/usr/lib# ls -al libstdc++.so.6*
lrwxrwxrwx 1 root root 19 Sep 16 23:03 libstdc++.so.6 -> libstdc++.so.6.0.24
-rwxr-xr-x 1 root root 1240644 Sep 9 02:04 libstdc++.so.6.0.21
-rwxrwxrwx 1 root root 9459568 Sep 16 23:35 libstdc++.so.6.0.24
lrwxrwxrwx 1 root root 19 Jan 1 1970 libstdc++.so.6.bak -> libstdc++.so.6.0.21
-rwxr-xr-x 1 root root 9459568 Sep 16 23:11 libstdc++.so.6.bak_24