Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

include path problem in nios 9.1

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.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    nios9 IDE sucks!!!!

    add include path is not working, it should be add in C/C++ build/tool setting/Nios compiler/General.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.