Forum Discussion

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

header-file directories

Hi all--

I've built a project and placed two .c files into it. I've also copied-and-pasted a header-file directory, "hdr," into my project.

When I build the project, the header files inside the "hdr" directory aren't found. Is there somewhere obvious that I should be setting the include paths for the project? I'd have thought this would be somewhere under the project properties, but I see no such setting. Without it, I'd have assumed that the compiler would look under each of the directories in my project to find them. Apparently not?

Is there somewhere within the IDE that I should go, to set up my include directory path(s)?

Thanks in advance.

Brian

2 Replies

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

    You have to change project properties.

    Projects proprerties > c/c++ build > general

    add your path
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by bigmickey@Sep 13 2005, 04:20 AM

    you have to change project properties.

    projects proprerties > c/c++ build > general

    add your path

    --- Quote End ---

    Wow; I must&#39;ve been completely blind yesterday. Not sure why I didn&#39;t see the great big box that says "include paths" on it. D&#39;oh! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif Anyway, thanks.

    Brian