Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

Add source file to existing project

Altera_Forum
Honored Contributor II
2,517 Views

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.
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
1,642 Views

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

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
1,642 Views

just drag the file to the project in nios2.

0 Kudos
Altera_Forum
Honored Contributor II
1,642 Views

just drag the file to the project in nios2 environment.

0 Kudos
Altera_Forum
Honored Contributor II
1,642 Views

Thank You guys!

0 Kudos
Altera_Forum
Honored Contributor II
1,642 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
1,642 Views

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

Might help you...
0 Kudos
Altera_Forum
Honored Contributor II
1,642 Views

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

but whatever :D Thanks for the help
0 Kudos
Reply