Forum Discussion

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

howto include header

How does I include header files to an project. I did find this in "Referencing a Managed Library Project" :

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

Set up the include paths to locate headers from your Managed Library project. If your managed library project includes header files you would like to access from your C/C++ application project, you need to specifically enter the paths to the header files.

a) On the Tool Settings tab, select Nios II Compiler > General.

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif In the Include Paths section, click Add Include Path and add the full or relative path to the folder containing the header files.[/b]

--- Quote End ---

I can&#39;t even find this :

http://forum.niosforum.com/forum/index.php...wtopic=2498&hl= (http://forum.niosforum.com/forum/index.php?showtopic=2498&hl=)

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

Projects proprerties > c/c++ build > general[/b]

--- Quote End ---

http://forum.niosforum.com/forum/index.php?showtopic=138&hl= (http://forum.niosforum.com/forum/index.php?showtopic=138&hl=)

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

You can use resources which are located at other places than your project by adding more include paths (Project -> Properties -> C/C++ Build -> Include Paths). Now you can use the resources with an include statement (“#include xyz.h”).[/b]

--- Quote End ---

I can&#39;t find it. I belive I am blind http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

2 Replies