Solution for Windows GSL Runtime error

Source: Internet
Author: User

After more than two days of fighting, finally the glad source code integration in.

In the compilation, the link is correct, the program began to run, and then a very helpless runtime error, in

1 /*  */2     T = gsl_multimin_fdfminimizer_conjugate_pr; 3     s = Gsl_multimin_fdfminimizer_alloc (T, numlabelers + numimages);

This place error, prompt

First chance exception at 0X000000006EF577B5 (Libgsl-0.dll) (GLAD.exe): 0xC0000005: An access violation occurred while reading location 0xFFFFFFFFFFFFFFFF. ”

After a series of struggles, we find that we need to add two sentences to the header of the file using this function:

#define Gsl_dll#define WIN32

Problem solving.

Solution for Windows GSL Runtime error

Related Article

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.