Suppose the following C program files:
main.c
#include <stdio.h>
int main(){
double d;
d= myfunc ();
printf("%lf ",d);
return 0;
}
myfunc.c
double myfunc(){
double b = 1.5;
return b;
}
An error occurred during the following compilation commands:
[bash]$ gcc -Wall -c main.c
[bash]$ gcc -Wall -c myfunc.c
[bash]$ gcc myfunc.o main.o
What kind of error is it?