VS2012 Configuring the gsl-1.8 Library

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.