Forum Discussion

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

Add source file to existing project

Hi all,

Does anyone know how can add an existing c/c++ file to the actual opened NIOS project?

I use a workaround creating a new source file, then copy / paste the content. But sometimes this is very tyring or I'm too lazy.

7 Replies

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

    Doesn't adding it to the project's directory and "refresh"ing the project work?

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

    What if i want to link to the files instead of draging to the project?

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

    One 'trick' is to add a file that just contains# include "real_file".

    Might help you...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yeah DSL there are several tricks that works but i did not want to use a workaround...

    but whatever :D Thanks for the help