Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIncludes
Hello! I include some headers in one c-file of a project. These headers are in other directories as the c-file. I can't use absolute paths to include the header files, because the ...
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by maico@Oct 11 2005, 07:39 AM hi mountain!
sorry, i didn't mention that i don't want to use relative paths too.
i'm searching for a possibility to set include paths for the compiler
for a project in nios ii.
bye, lothar.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10295)
--- quote end ---
--- Quote End --- Edit your Makefile and add -I<path-to-include-dir> to your CFGLAGS (Note: -I is a capital i not an L). After that you can include the files with# include <file> The path you give with the -I flag can be either absolute or relative. Hop this helps