Forum Discussion
Altera_Forum
Honored Contributor
16 years agoAdd 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
Honored Contributor
Doesn't adding it to the project's directory and "refresh"ing the project work?
- slacker - Altera_Forum
Honored Contributor
just drag the file to the project in nios2.
- Altera_Forum
Honored Contributor
just drag the file to the project in nios2 environment.
- Altera_Forum
Honored Contributor
Thank You guys!
- Altera_Forum
Honored Contributor
What if i want to link to the files instead of draging to the project?
- Altera_Forum
Honored Contributor
One 'trick' is to add a file that just contains# include "real_file".
Might help you... - Altera_Forum
Honored 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