head.c:
head.h:Code:int add(int a, int b) { return(a+b); }
main.c:Code:#include <stdio.h>
=================Code:#include "head.h" main() { int a = 10, b = 9; printf("addition is : %d", add(a+b)); }
gives error:Code:cc main.c
any line of code needs to be added in any file without changing the file structure/number of files. m unable to make it.Code:/tmp/ccuq5Rod.o: In function `main': main.c:(.text+0x28): undefined reference to `add' collect2: ld returned 1 exit status