Hello,
I am trying to use the GNU Scientific library as part of my C program. I am devloping under Windows XP, using the Visual C++ compiler. I created this simple program to try to get the hang of using the library, however I cannot get it to link for the life of me.
Here is the code:
Code:
#include <stdio.h>
#include <C:\GnuWin32\include\gsl/gsl_cdf.h>
extern double gsl_cdf_chisq_Pinv (const double P, const double nu);
int main (void)
{
double y=0;
y = gsl_cdf_chisq_Pinv (0.000085, 100);
printf( "Ans is: %e \n", y);
return 0;
}
Here is the Error message:
--------------------Configuration: EarlyPass - Win32 Debug--------------------
Compiling...
EarlyPass.c
Linking...
EarlyPass.obj : error LNK2001: unresolved external symbol _gsl_cdf_chisq_Pinv
Debug/EarlyPass.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
EarlyPass.exe - 2 error(s), 0 warning(s)
Any suggestions?
Thanks in advance.