Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
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.
21615 Discussions

include path problem in nios 9.1

Altera_Forum
Honored Contributor II
1,211 Views

Hi  

 

I'm new to nios. i meet a weird problem to me.  

 

I create a new project hello_world0. and add a inc folder uder it. 

 

then i add a new file test.h in this inc folder. and include it in the hello_world.c. I also add the path to project properties.  

 

But when I build the project, it show me that he can't find test.h, does someone knows why ?  

 

thank you very much.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
431 Views

nios9 IDE sucks!!!! 

 

add include path is not working, it should be add in C/C++ build/tool setting/Nios compiler/General.
0 Kudos
Altera_Forum
Honored Contributor II
431 Views

I had some trouble with the IDE and include paths too. If you use a relative path from the project folder to the include file (#include "inc/test.h") it should work.

0 Kudos
Reply