The problem seems to be that your code is not compiling correctly. Your code in the second file doesn’t seem to be compiled and linked to the code in the file with main.
Undefined reference means that your code in main doesn’t know where do find the compiled code to run the function ‘add’.
@JeremyLT thank you so much I figured it out. I am not really sure if I am doing it right because I am new to this header stuff.
Is it correct that I just added "#include “functions.c” in the main.c? it seems to remove the error and compiled correctly. YT tutorials don’t seem to do that.