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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Add source file to existing project

Altera_Forum
Honored Contributor II
2,521 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,646 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,646 Views

just drag the file to the project in nios2.

0 Kudos
Altera_Forum
Honored Contributor II
1,646 Views

just drag the file to the project in nios2 environment.

0 Kudos
Altera_Forum
Honored Contributor II
1,646 Views

Thank You guys!

0 Kudos
Altera_Forum
Honored Contributor II
1,646 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
1,646 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,646 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