This is the process of configuring GSL on vc6.0. I hope it will be helpful to my friends who want to learn gsl.
1. Introduction to GSL
The GNU scientific computing function library GSL (GNU Scientific Library) is a powerful C/C ++ numeric computing function library. It is a free software and a part of the GNU project software, follow the GPL protocol. GSL isProgramScientific numeric library provided by the operator. The scientific computing library is exceptionally powerful. The function library provides a large number of numerical computing programs, such as random functions, special functions, and fitting functions. The function library contains more than 1000 functions, it covers almost all aspects of scientific computing. Provides the following support:
Complex Numbers roots of polynomials Special Functions
Vectors and matrices permutations sorting
Blas support linear algebra eigensystems
Fast Fourier Transforms quadrature random numbers
Quasi-random sequences random distributions statistics
Histograms N-tuples Monte Carlo Integration
Simulated Annealing differential equations Interpolation
Numerical differentiation Chebyshev approximation series Acceleration
Discrete Hankel Transforms root-finding Minimization
Least-squares fitting physical constants IEEE floating-point
Discrete Wavelet Transforms basis Splines
The main page of this function library is http://www.gnu.org/software/gsl/gsl.html. Unfortunately, the original GSL does not support Windows platforms. Fortunately, some people have transplanted GSL on Windows. For details, see http://gnuwin32.sourceforge.net/packages/gsl.htm. the current issue is 1.8.
Ii. Download GSL
1. Download the complete package, Volume t sources, and sources files from http://gnuwin32.sourceforge.net/packages/gsl.htm.
2. From http://www6.in.tum.de /~ Download wingsl-lib-1.4.02.zip from KISS/wingsl.htm.
Iii. Installation
1. First install.
2. Decompress wingsl-lib-1.4.02.zip to drive D:/wingsl.
4. Set the Visual C ++ 6.0 compiling environment
1. Set wingsl in D:/wingsl/bin. DLL and wingsld. DLL to D:/vc6.0/bin. Copy the entire GSL directory to D:/vc6.0/bin. copy all lib files to D:/vc6.0/lib.
2. Create a project for testing. I created test_gsl. Then, add the library files you used to the project-settings-link in the object/library modules, such as wingsl. Lib, and separate them with spaces.
3. In tools-options-directories, add lib and GSL under D:/wingsl to the search path of the library file and header file respectively.
V. Test The GSL function library
Add the source file test_gsl to the test_gsl project.CodeAs follows:
# Include <iostream>
# Include <GSL/gsl_sf.h>
Int main (INT argc, char * argv [])
{
STD: cout <gsl_sf_gamma_inc (1.5, 0.5) <STD: Endl;
STD: cout <gsl_sf_gamma_inc_q (1.5, 0.5) <STD: Endl;
STD: cout <gsl_sf_gamma_inc_p (1.5, 0.5) <STD: Endl;
Return 0;
}
The following error occurs when the result is running:
Libcd. Lib (wincrt0.obj): Error lnk2001: unresolved external symbol _ winmain @ 16
Debug/test_gsl.exe: Fatal error lnk1120: 1 unresolved externals
in project-> Settings-> link-> project options, change/subsysetm: Windows to/subsystem: console in Project Settings, you can compile and run the test_gsl project, which indicates that the GSL function library is ready for use.