Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

C++ 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 Mirzaee

11 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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&#39;s the truth. The other option is to modify the file type associations for the project. Also this may have been fixed recently.