资 源 简 介
Build gsl library as static library using cl.exe and lib.exe
Download source gsl-1.15.tar.gz
http://mirrors.ustc.edu.cn/gnu/gsl/gsl-1.15.tar.gz
If you have visual studio 2010, use this sln files (gsl-1.15-vc10.zip):
http://svn.icmb.utexas.edu/svn/repository/trunk/zpub/sdkpub/gsl-1.15/vs2010_port/
Or use my scripts (gsl-build-msvc.zip):
http://code.google.com/p/gsl-w32/downloads/detail?name=gsl-build-msvc.zip
```
unpack gsl-1.15.tar.gz
cd gsl-1.15
cat msvc.patch | patch -p1
cd _build-msvc
nmake
```
include files `in gsl-1.15gsl`
library files in `_build-msvc`
Example:
```c
```
#include
#include
#include
#include
#include
#define RAW(v) ((void*)&(v))
void test_gsl_linear_regression(void)
{
int i = 0;
//sample
size_t norris_n = 11;
size_t xstride = 1;
size_t ystride = 1;
double x[] = { 71, 73, 64, 65, 61, 70, 65, 72, 63, 67, 64};
double y[] = {160, 1