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++
公告
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.

#include problems

Altera_Forum
榮譽貢獻者 II
1,068 檢視

I've recently created a new NIOS II (v7.2) C/C++ Application, and I cannot get the compile to recognize files that are not located in the root project directory. I have existing source code I would like to use that is already organized into a folder hierarchy that I would like to keep. If I type out the long folder name (i.e.# include "existing_source/stats/data_collection/deviation/standard.h"), NIOS will see the header file. Other than that, NIOS IDE will not see it. 

 

I've tried adding folders into the "Include Paths and Preprocessor Symbols" window from the project properties option "C/C++ Include Paths and Symbols," but the IDE still won't see it. 

 

This seems like it should be quite simple to include files that aren't in the root directory, but I don't seem to be having any luck. Any suggestions would be appreciated
0 積分
1 回應
Altera_Forum
榮譽貢獻者 II
382 檢視

You can use the 'Linked Resources' feature. Search for the topic 'Creating Linked Resources' in the IDE built-in help. I use this feature to share common source files between several projects. 

I'm still on v6.1 of the tools, and it required a patch to fix a problem when building. I would hope that v7.2 will work 'out of the box'. 

 

Cheers 

 

回覆