error while loading shared libraries: libstdc++.so

2019-08-02 11:14发布

问题:

I Compiled sample C++ Code using ARM CrossCompiler and generated A.out file in Linux PC. And transfered the A.out file file to ZedBoard. When I try to run the A.out file in Zedboard ,It is showing the following error,

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file

Can anyone tell me the solution for the error?

回答1:

Install g++ to solve this issue.

Open a terminal and install the g++ package:

sudo apt-get install g++