Two possibilities ... (1.) The file libstdc++.so.6 you found is actually an Intel shared-object file and not an ARM shared-object file, The file names are the same, but the files are very different, since compiled for different target computers.
To cross compile in a Windows environment, you need a full set of the ARM shared-object files to link to. The ARM computer/executables/ can not see an Intel shared-object file, So you may have some kind of mixed environment problem with your cross-compiler set-up. (2.) Could be a Linux permissions/ownership problem. Likely in one case, the file is owned by 'root', and in the other case, file is owned by a user. Examine the all files and the executables using ls -al change the ownership with chown if necessary. --- Graham == On Tuesday, January 17, 2017 at 7:25:31 AM UTC-6, Vlanov Mitnov wrote: > > Hello. I try to use cross compilation under windows. > My board is BeagleBone Black with Angstrom. > I downloaded toolchain from > http://sysprogs.com/files/gnutoolchains/beaglebone/beaglebone-gcc4.7.3.exe > . > If I compile programm with gcc, after deploing I can run it with out > problems. If i use g++, after deploing I > receive libstdc++.so.6 not found. > I search this library on board it is exiest. > If i compile the same program directly on board using g++ it runs > perfectly. > > If I use ldd on programm compiled on windows mashine, ldd writes > libstdc++.so.6 not found. > If I use ldd on programm that compiled on board ldd shows pathes to > librarys. > > I checked /etc/ld.so.conf all possible pathes is writen. > I tryed to copy libstdc++.so.6 to angsterm library pathes, but it is still > not found after run programm. > Do you have any ideas? > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/05fa0d83-4450-44e8-9455-8709dbff1a8f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
