This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

error while loading shared libraries: libstdc++.so ------ confused ..???


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]