Resolved. -static isn't compiler, but linker option. Regards. On Wednesday, September 23, 2020 at 4:18:17 PM UTC+2, Pavel Yermolenko wrote: > > Here is execution in eclipse: > Eclipse execution > <https://i.postimg.cc/Kc5L3Wkk/Screenshot-from-2020-09-23-15-46-33.png> > > Here is Eclipse compiler options: > Compiler options > <https://i.postimg.cc/QMpVGBc9/Screenshot-from-2020-09-23-15-47-45.png> > > On Wednesday, September 23, 2020 at 4:12:49 PM UTC+2, RobertCNelson wrote: >> >> >> >> On Wed, Sep 23, 2020 at 8:56 AM Pavel Yermolenko <[email protected]> >> wrote: >> >>> Hello, >>> >>> In his book "Exploring BeagleBone", Derek Molloy provides example of >>> executing of the source code that built on host machine using cross >>> toolchain. For that QEMU emulator must be installed on host machine. >>> >>> In terminal it works fine when a source is built with *-static* option: >>> >>> pavel@ALABAMA:~/bbb_cross_toolchain_code$ arm-linux-gnueabihf-g++ >>> -static testcross.cpp -o testcross >>> pavel@ALABAMA:~/bbb_cross_toolchain_code$ ./testcross >>> Testing cross compilation for armhf >>> pavel@ALABAMA:~/bbb_cross_toolchain_code$ >>> >>> But in Eclipse it doesn't work although I added *-static* in >>> cross-compiler options. >>> >>> [image: Screenshot from 2020-09-23 15-46-33.png] >>> >>> [image: Screenshot from 2020-09-23 15-47-45.png] >>> >>> Any comments ? >>> >> >> For some reason the images didn't show up in mail.. >> >> /lib/ld-linux-armhf.so.3: No such file or directory >> >> Regards, >> >> -- >> Robert Nelson >> https://rcn-ee.com/ >> >
-- 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/4e2bf028-98ff-4cb5-ac01-271f6460a18bo%40googlegroups.com.
