The error is because you do not have this library in your rootfs. The easiest way to get it in is to build your own kernel/rootfs first by creating a new u-boot/kernel/rootfs project and adding cpp example in to rootfs through project configuration screen, You will then be able to run your own c++ apps.
Please make sure you include hello_world_cpp_libstd example as part of your U-boot/Kernel/rootfs project using “configure project” screen:
Create new Kernel/rootfs/Uboot project:
go To File->New->Digi EL Kernel/rootfs/U-boot Project
Fill out all the fields on the next screen, then select checkboxes next to kernel, rootfs, and applications.
Fill out the next screen as follows.
Then click Finish. Right click on the new project and select “configure project”.
“configure project” screen:
In configuration window scroll all the way down to Application Configuration->Application templates and select checkmark next to hello_world_cpp_libstd and optionaly gpio_test, rtc_test,helloworls, etc:
Save then close this window. Now you are ready to build –right click on the project then select “Build project”
Next do “Install Project”
If configured properly , this will copy binary images to /tftpboot and create a rootfs folder for your platform in /exports folder. Now you can use “dboot linux tftp” command to boot your module – it will download kernel image over tftp and then mount rootfs from the platfoprm folder in your host’s /exports folder.
You should now have your own kernel and your own rootfs with all of the above samples.
In this case libstdc++ library will be automatically stripped and added to your rootfs:
BusyBox v1.11.3 (2008-10-06 12:01:16 CEST) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
/ # ls -la /lib/libstdc++.so.6
lrwxrwxrwx 1 root root 18 Jan 13 2009 /lib/libstdc++.so.6 -> libstdc++.so.6.0.7
/ #
/ # ls -la /lib/libstdc++.so.6.0.7
-rwxr-xr-x 1 root root 516080 Jan 13 2009 /lib/libstdc++.so.6.0.7
/ #
Regards,
Leonid