LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-10-2013, 07:09 AM   #1
mahiba
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
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?

Last edited by mahiba; 05-10-2013 at 07:11 AM. Reason: one word repeated two times
 
Old 05-10-2013, 10:14 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,566

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
Quote:
Originally Posted by mahiba View Post
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.
 
Old 05-10-2013, 05:18 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,898

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
while loading shared libraries: libstdc++.so.6: cannot open shared object file: vswapnasr@gmail.com Linux - Software 2 05-05-2013 04:44 AM
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: vswapnasr@gmail.com Linux - Software 1 05-04-2013 06:49 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM


All times are GMT -5. The time now is 05:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration