From: allan George <gorge.alan.sw@gmail.com>
To: crossgcc@sourceware.org
Subject: Re: error while loading shared libraries: libstdc++.so ------ confused ..???
Date: Mon, 04 Feb 2013 08:18:00 -0000 [thread overview]
Message-ID: <CAB94n=d_C-MQfqUY-czBmiT_x3_pfX+Dv=hp+euKYKNniN1Csw@mail.gmail.com> (raw)
In-Reply-To: <CAB94n=dnWT8zjsbK0QrEp-1vQ2aPrNvco2pkeoaeygr2Ms3Kpg@mail.gmail.com>
when i run this command :--------- >>> whereis libstdc++.so
it shows the library
[SB2 simple armhf] ignite@ignite testing $ whereis libstdc++.so
libstdc++:
[SB2 simple armhf] ignite@ignite testing $
Even i run ldconfig -v same error is there :-----
[SB2 simple armhf] ignite@ignite testing $ ldconfig -v
/home/ignite/sbox2/rootfs/armhf/sbin/ldconfig: Can't open
configuration file /home/ignite/sbox2/rootfs/armhf/etc/ld.so.conf: No
such file or directory
/lib/arm-linux-gnueabihf:
libpcprofile.so -> libpcprofile.so
libcrypt.so.1 -> libcrypt-2.13.so
libdl.so.2 -> libdl-2.13.so
libSegFault.so -> libSegFault.so
libmount.so.1 -> libmount.so.1.1.0
libnsl.so.1 -> libnsl-2.13.so
libncurses.so.5 -> libncurses.so.5.9
libmemusage.so -> libmemusage.so
libpamc.so.0 -> libpamc.so.0.82.1
libz.so.1 -> libz.so.1.2.7
libuuid.so.1 -> libuuid.so.1.3.0
libattr.so.1 -> libattr.so.1.1.0
libresolv.so.2 -> libresolv-2.13.so
libncursesw.so.5 -> libncursesw.so.5.9
libprocps.so.0 -> libprocps.so.0.0.1
libcom_err.so.2 -> libcom_err.so.2.1
libsepol.so.1 -> libsepol.so.1
libbz2.so.1.0 -> libbz2.so.1.0.4
libnss_files.so.2 -> libnss_files-2.13.so
libpthread.so.0 -> libpthread-2.13.so
libss.so.2 -> libss.so.2.0
libdbus-1.so.3 -> libdbus-1.so.3.7.2
libacl.so.1 -> libacl.so.1.1.0
libpam.so.0 -> libpam.so.0.83.0
libBrokenLocale.so.1 -> libBrokenLocale-2.13.so
liblzma.so.5 -> liblzma.so.5.0.0
librt.so.1 -> librt-2.13.so
libudev.so.0 -> libudev.so.0.13.0
libgcc_s.so.1 -> libgcc_s.so.1
libanl.so.1 -> libanl-2.13.so
libm.so.6 -> libm-2.13.so
libnss_hesiod.so.2 -> libnss_hesiod-2.13.so
libselinux.so.1 -> libselinux.so.1
libpam_misc.so.0 -> libpam_misc.so.0.82.0
libext2fs.so.2 -> libext2fs.so.2.4
libnss_nisplus.so.2 -> libnss_nisplus-2.13.so
libkmod.so.2 -> libkmod.so.2.1.3
ld-linux-armhf.so.3 -> ld-2.13.so
libply-splash-core.so.2 -> libply-splash-core.so.2.1.0
libnss_compat.so.2 -> libnss_compat-2.13.so
libslang.so.2 -> libslang.so.2.2.4
libtinfo.so.5 -> libtinfo.so.5.9
libnss_nis.so.2 -> libnss_nis-2.13.so
libnss_dns.so.2 -> libnss_dns-2.13.so
libc.so.6 -> libc-2.13.so
libblkid.so.1 -> libblkid.so.1.1.0
libutil.so.1 -> libutil-2.13.so
libthread_db.so.1 -> libthread_db-1.0.so
libcidn.so.1 -> libcidn-2.13.so
libe2p.so.2 -> libe2p.so.2.3
libply.so.2 -> libply.so.2.1.0
/usr/lib/arm-linux-gnueabihf:
libpanel.so.5 -> libpanel.so.5.9
libformw.so.5 -> libformw.so.5.9
libsemanage.so.1 -> libsemanage.so.1
libtic.so.5 -> libtic.so.5.9
libustr-1.0.so.1 -> libustr-1.0.so.1.0.4
libmenu.so.5 -> libmenu.so.5.9
libmenuw.so.5 -> libmenuw.so.5.9
libply-boot-client.so.2 -> libply-boot-client.so.2.1.0
libdb-5.1.so -> libdb-5.1.so
libform.so.5 -> libform.so.5.9
libpanelw.so.5 -> libpanelw.so.5.9
/lib:
libnih-dbus.so.1 -> libnih-dbus.so.1.0.0
libnih.so.1 -> libnih.so.1.0.0
/usr/lib:
libperl.so.5.14 -> libperl.so.5.14.2
[SB2 simple armhf] ignite@ignite testing $ g++ new.cpp
[SB2 simple armhf] ignite@ignite testing $ ./a.out
./a.out: error while loading shared libraries: libstdc++.so.6: cannot
open shared object file: No such file or directory
[SB2 simple armhf] ignite@ignite testing $
On Mon, Feb 4, 2013 at 11:36 AM, allan George <gorge.alan.sw@gmail.com> wrote:
> Hi,
>
> I have build my toolchain using following link it have , crosscompiler
> c++ support enabled :-----
> http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/
>
>
> Now i am compiling my code in Scratchbox2, c++ code is compiling but
> not able to run it throws this error :-------
> ./a.out: error while loading shared libraries: libstdc++.so
>
>
>
> Compiler version :------------------
> [SB2 simple armhf] ignite@ignite testing $ g++ version
> arm-unknown-linux-gnueabi-g++: error: version: No such file or directory
> arm-unknown-linux-gnueabi-g++: fatal error: no input files
> compilation terminated.
> [SB2 simple armhf] ignite@ignite testing $ g++ --version
> arm-unknown-linux-gnueabi-g++ (crosstool-NG 1.17.0) 4.7.3 20121001 (prerelease)
> Copyright (C) 2012 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> compiling successful :---------------
> [SB2 simple armhf] ignite@ignite testing $ g++ new.cpp
>
> output file format :----------------
> [SB2 simple armhf] ignite@ignite testing $ file a.out
> a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
> linked (uses shared libs), for GNU/Linux 3.6.3, not stripped
>
>
> Error thrown :---------
> [SB2 simple armhf] ignite@ignite testing $ ./a.out
> ./a.out: error while loading shared libraries: libstdc++.so.6: cannot
> open shared object file: No such file or directory
>
>
> Any suggestion why this error is. Please suggest.
>
> Regards,
>
> //Allan
--
For unsubscribe information see http://sourceware.org/lists.html#faq
next prev parent reply other threads:[~2013-02-04 8:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAB94n=cPtV=qt=FBVcAxwu945vMEQ7nERRSMdKAfdq6vUOG1Dg@mail.gmail.com>
2013-02-04 6:06 ` allan George
2013-02-04 8:18 ` allan George [this message]
2013-02-04 8:53 ` allan George
2013-02-04 9:31 ` allan George
2013-02-04 16:57 ` Trevor Woerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAB94n=d_C-MQfqUY-czBmiT_x3_pfX+Dv=hp+euKYKNniN1Csw@mail.gmail.com' \
--to=gorge.alan.sw@gmail.com \
--cc=crossgcc@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).