I created my own header file in C by creating the ff. files: myfile.h, myfile.c and main.c.Afterwards, I compiled myfile.c so I already have the object file for it, but the problem is when I compiled and run main.c this error message appeared: "Undefined symbol _sum". Please help me to fix this error.See the complete source code of mine below.
// library header file: myfile.h
int sum(int x, int y);
// library implementation file: myfile.c
int sum(int x, int y)
// Program to be run: main.c
printf("The sum of 3 and 5 is %i",sum(3,5));