Forum Discussion
Altera_Forum
Honored Contributor
12 years agoInclude files not found in Altera-SoCFPGA-HelloWorld-Baremetal-GNU
Hello, I got the example project Altera-SoCFPGA-HelloWorld-Baremetal-GNU to work. I am using DS-5 and the target is Cyclone 5 SoC. I modified the hello.c so that it calls a function from anot...
Altera_Forum
Honored Contributor
12 years agoHi,
The solution is very simple, you have to change the way how you include your own headers.#include <stdio.h> This method is used to include standard library header files. The preprocessor searches the file normally in normally in directories pre-designated by the compiler. #include "proj_files/testfunc.h" This method is used to include programmer defined header files. The preprocessor searches the file in the same directory as the include directive. Just try it out.