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連結已複製
1 回應
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