Forum Discussion
Altera_Forum
Honored Contributor
20 years agoC++ is IMPOSSIBLE in NIOSII
Hey Everyone, After spending over 20 hours trying everything that I could, I have concluded that it is impossible to have NIOSII run C++... If you want to define your own classes you need to in...
Altera_Forum
Honored Contributor
20 years agoaym35
Can I recommend that you get yourself sent on a C++ course or get hold of a copy of The C++ Programming Language by Bjarne Stroustrop. It's obvious from your post that you're unfamiliar with C++ and you problems stem from this rather than being Nios specfic. <div class='quotetop'>QUOTE </div> --- Quote Start --- If you want to define your own classes you need to include the c++ library <iostream>[/b] --- Quote End --- Actually you can define your own classes without including the C++ header file <iostream>, you only need to include this if you wish to use IO Streams. Slacker is quite correct there are examples of using iostreams in the eCos port, which he is also correct is written in C++. The eCos port is available for download from this forum. As a general note whilst I'm sure everyone can empathise with the frustration of being stuck, you will find that you get more help on forums and mailing lists if you restrict the tone of your posts. If you make a big bold statement like <div class='quotetop'>QUOTE </div> --- Quote Start --- C++ is impossible in Nios II[/b] --- Quote End --- you want to be sure you're right.