Forum Discussion

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

How do you #include <iostream>

Hi,

Everytime I put in the statement# include <iostream>

I get an error that says that this file cannot be found... is there anyway to include this file in the NIOSII IDE?

Thanks,

Aydin.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi amy35,

    in order to do this you have to know where the file is.... First search it with windows (search) or what ever the file is that you need. Then right-click on you project, choose: properties -> C/C++ Build -> (NIOS II COMPILER) General -> Include paths...

    Now all you have to do is to include the path to the file and it should work

    Good luck....

    Danny
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    The problem with that is that when I do search for IOSTREAM, there are many many IOSTREAM files, most of which, refer to other files themselve... then I get errors regarding those files...

    thanks,

    Aydin.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Aydin,

    suppose you don&#39;t have multiple versions of the ide installed on your pc!? E.g. evaluation version and full version?! We had that problem here at our company. 3 versions installed and gave errors just like you....

    good luck

    Danny