Altera_Forum
Honored Contributor
13 years agoreuse header and c file as library
I am using Nios II SBT Eclipse. I have couple of .c and .h files that i would like to use in a project. But when I trying to call the function in main program, it keep give me error of "undefined reference to: "function name"". I had include the header using# include. All the .c and .h file are placed in a folder in the same directory. Can someone help me with how to set up this folder as include library?