LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   error while loading shared libraries: libstdc++.so.6: cannot open shared object file: (https://www.linuxquestions.org/questions/linux-hardware-18/error-while-loading-shared-libraries-libstdc-so-6-cannot-open-shared-object-file-4175461416/)

mahiba 05-10-2013 07:09 AM

error while loading shared libraries: libstdc++.so.6: cannot open shared object file:
 
Hi,

I Compiled sample C++ Code using ARM CrossCompiler and generated A.out file in Linux PC.

And transfered the A.out 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?

TB0ne 05-10-2013 10:14 AM

Quote:

Originally Posted by mahiba (Post 4948487)
Hi,
I Compiled sample C++ Code using ARM CrossCompiler and generated A.out file in Linux PC. And transfered the A.out 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?

Yes, and the system has already told you what the error is, and implies what the SOLUTION is too. The library mentioned is not installed/available on your Zedboard. So, install the missing libraries.

John VV 05-10-2013 05:18 PM

Quote:

I Compiled sample C++ Code using ARM CrossCompiler and generated A.out file in Linux PC.
A question on why you are using a *.out ??

is this "c code" part of a multi part library ?
That you are going to link into a *.so library

if not and this is a executable you need to add " -o" in the g++ build line
Code:

g++ -o program program.cpp
there are other orders for the command I am using this order out of an old habit


All times are GMT -5. The time now is 06:45 AM.