Question

I'm writing some code in which I use some of the GNU GSL functions. And out of pure interest I wonder how these functions have been implemented, therefore I would like to have a look at the source code. The problem is that I seem to be unable to find the directory at which it is located.

I know that I can find the headers in "/usr/local/include/gsl/", but where is the matching ".c" file?

Sorry if this is n00bing it, but i hope that someone can help me.

Was it helpful?

Solution

Just download a source package from their ftp, for example the latest version.

This contains all files to build this library, so not just the header files, but also the c files, together with a makefile, which specifies what is compiled in which order.

OTHER TIPS

You can find the implementation on their Github page. An example of their implementation of computing mean https://github.com/ampl/gsl/blob/master/statistics/mean_source.c

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top