I'm working on some assignement and basically we're being introduced to splitting our files up. So far, we have only really dealt with one main file.
So, I have three files - main.c, function1.c, function2.c and a header file called header.h.
According to the instructions given to us, the header file is to contain the function prototypes of the actual functions coded in function1.c and in function2.c
We are then to include the header file in each .c files.
Inside the main.c file, the two functions that were coded in function1.c and function2.c are called. However, I am getting an error saying,
main.c:(.text+0xec): undefined reference to `func1'
main.c:(.text+0x110): undefined reference to `func2'
I'm not too sure why this is happening.
I'm running Ubuntu 16.04 LTS