I am a newbie to C++ and codeblock. I hit a question when I installed GSL in CodeBlocks. I have already read this thread
http://forums.codeblocks.org/index.php/topic,13375.0.html. I follow the idea suggested in the post right click project -> build options -> Search Directories tab -> under complier, linker and resource complier, I add the following paths:
C:\Program Files\GnuWin32\src\gsl\1.8\gsl-1.8
C:\Program Files\GnuWin32\include\gsl
C:\Program Files\GnuWin32\contrib\gsl\1.8\gsl-1.8
C:\Program Files\GnuWin32\info
C:\Program Files\GnuWin32\doc\gsl\1.8\gsl-1.8
Then I run my testing code
#include <iostream>
#include <stdio.h>
#include <gsl_sf_bessel.h> /
#include <gsl_mode.h>
using namespace std;
int
main (void)
{
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}
there was no error message for calling the header gsl_sl_bessel.h because this file poped out in code::block console; however, more error messages came out saying that the system couldn't find header files which were called by gsl_sl_bessel.h. Does anyone has a clue how to solve the problems. thanks