I have followed the instructions provided for installing the GSL-1.16 library and I think I have successfully installed the library. However when I try to compile & run the example program found in the website (http://www.gnu.org/software/gsl/manual/html_node/An-Example-Program.html#An-Example-Program) I get the following message:
$ gcc besel_exam.c
Undefined symbols for architecture x86_64:
"_gsl_sf_bessel_J0", referenced from:
_main in besel_exam-72d841.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The operating system is macOS X Yosemite and the output of gcc --version is the following:
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix