the installation configuration of the GSL is as follows:
1. Download and install
From http://gnuwin32.sourceforge.net/packages/gsl.htm
Download install Gsl-1.8.exe and gsl-1.8-src.exe two EXE files.
Download good after:
2. Setting VS2012 compilation environment
1) Generate Lib file. Found in the installation directory Lib does not libgsl.lib,libgslcblas.lib these two files, but there are two extension def and a (Linux library package format) files, so must be converted.
To run with the VS2012 cmd command line, you cannot use the cmd!!! under Windows system
As shown in the following:
Here you choose: VS2012 x86 Native tool command Prompt (my is 32-bit system)
Run this thing from the Start menu, and then in the Command box, enter the following two statements in the Lib directory of the GSL library:
As shown in the following:
Lib/machine:i386/def:libgsl.def
Lib/machine:i386/def:libgslcblas.def
3. Setting Environment variables
The environment variable is configured as follows: Add directory: E:\GnuWin32\bin;
4, set the project properties:
"Include directory" add: E:\include
Library Directory add: E:\GnuWin32\lib
Source directory add: E:\GnuWin32\src\gsl\ 1.8\gsl-1.8
In the Project Properties connector, enter:
Libgsl.lib;libgslcblas.lib
Attention:
Libgsl.dll and Libgslcblas.dll solution not found at compile time
Directly under the Gsl/bin to copy the Libgsl.dll and Libgslcblas.dll to the project directory under the \debug directory, or vs bin can be!
VS2012 Configuring the gsl-1.8 Library