문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top