I am having difficulties while trying to link a file to my main code in order to interpolate a polynomial I have written minimal code and I have all the files used in the interpolation under the same directory. The files are from the book Numerical Recipes. I have minimal experience in linking external libraries and using subroutines in C. I would be glad if you can provide some assistance. The code and the associated files are as follows: nrutil.c ; nrutil.h; POLINT.C
#include <stdio.h>
#include <math.h>
#include <limits.h>
#include <stdlib.h>
#include <POLINT.C>
int main()
{
int i;
long double x[11], erf[11];
for(i = 0; i <11; i++)
{
x[i] = i / 10.0;
erf[i] = erfl(x[i]);
printf("x is %Lf \n", x[i]);
}
return 0;
}