Actually just found the solution.
Basically, you have to put the compiler flags in the correct order. That is, after the compile statement:
Code:
$ gcc temp.c -o temp -lgsl -lgslcblas
Background:
<a href="http://askubuntu.com/questions/71623/why-does-gsl-library-not-compile-link-in-11-10-despite-that-it-did-under-11-04">http://askubuntu.com/questions/71623/why-does-gsl-library-not-compile-link-in-11-10-despite-that-it-did-under-11-04</a>
and
<a href="http://ubuntuforums.org/archive/index.php/t-1833136.html">http://ubuntuforums.org/archive/index.php/t-1833136.html</a>
HTH
Bookmarks