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 include the c++ library <iostream> and well, I have tried everything to add it in... when I do include this file, the NIOSII IDE finds errors in my IOSTREAM file... it actually gives syntax errors to this standard library... I think that it is hopeless... if anyone has successfully written their own classes and/or has been able to build an object oriented program in NIOSII, please let me know how you can do this.... if not, we should all just scrap C++.... please let me know... Aydin Mirzaee11 Replies
- Altera_Forum
Honored Contributor
I realize this is an old thread but if I remember correctly you had to define your C++ header files with the extension .hpp for the IDE to treat them appropriately. Stupid yes but it's the truth. The other option is to modify the file type associations for the project. Also this may have been fixed recently.