Menu

gsl_multimin_fdfminimizer_alloc crash

Help
2005-09-08
2012-07-26
  • Nobody/Anonymous

    both:

    gsl_multimin_fdfminimizer_alloc
    gsl_multimin_fminimizer_alloc

    seem to cause a runtime error regardless of parameters. is this a known bug? has anyone gotten the multidimensional minimization examples to work in windows?

    Thanks!

     
    • hill2005

      hill2005 - 2005-09-10

      Same problem in gsl_multiroot_fsolver_alloc and gsl_multiroot_fsolver_alloc. A bug?

       
    • hill2005

      hill2005 - 2005-09-10

      I have solved my problem in gsl_multiroot_fsolver_alloc. Just include libgsl.a instead of libgsl.lib in my project. I don't know why but it works. It is worth trying.

       
      • Nobody/Anonymous

        Thank you very much!!!
        It really works, thanks again.
        I also use Dev-cpp, when I want to run the one-dimensional root finding sample c code, it crashed. I found it crashed just after the line
        s = gsl_root_fsolver_alloc (T);
        But I don't know what to do.
        Now I also replaced the linker parameter "-lgsl -lgslcblas" by giving the file libgsl.a, it works.
        You are right.

         
    • Nobody/Anonymous

      the .lib files are for C
      the .a files are for C++

       
      • Nobody/Anonymous

        How do I include a .a file in Vis C++ 6 instead of .lib

         
        • Nobody/Anonymous

          Rename it to .lib

           
MongoDB Logo MongoDB