Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi carol,
It is the startup crt0.o problem. It should be easier if you work on Linux and follow my buildroot guide, http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174) The step8 in port#1 tells you how to compile and run a simple program on uClinux. About C++, you can not use nios2-elf's libstdc++, it is bond to newlib. On uClinux, you should need that which is bond to uClibc. The libstdc++ which we built with uClibc still have problems, it compiled and linked, but crashed when running on uClinux. I am not a C++ user, and I can't resolve the problems without help from C++ user.