Topic: How to use GSL

This is Kato Tomohisa from Japan.
I want to use GSL.

I installed GSL by SF Pakage Manager.
I edit program below.
But I can't build.
How I set Include and Lib.

#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>

Program source
int main (void)
{
  double x = 5.0;
  double y = gsl_sf_bessel_J0 (x);
  printf ("J0(%g) = %.18e\n", x, y);
  return 0;
}

Massage
==============================================================================
Generating Makefile... Okay
==============================================================================
Generating target.exe
build\bessel.o: In function `main':
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
D:\@ProgramSource\c/./bessel.c:8: undefined reference to `gsl_sf_bessel_J0'
collect2.exe: error: ld returned 1 exit status
Error: Last command making (target.exe) returned a bad status
Error: Make execution terminated

* Failed *

Re: How to use GSL

This is Kato Tomohisa from Japan.
It is solved.
I add linker option (compiler flafs) "-lgsl".
Thank you.