Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

howto include header

Altera_Forum
Honored Contributor II
1,279 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
360 Views

You have to click on your project in the "C/C++ Projects" or "Navigator" tree view and then select Project / Properties from the menu. Click C/C++ Build in the left pane and Nios II Compiler / General in the "Tool Settings" tab. A box will miraculously appear. click the thing made of 3 +&#39;s and browse away! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif  

 

Eclipse sucks http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
0 Kudos
Altera_Forum
Honored Contributor II
360 Views

Thanks

0 Kudos
Reply