Menu

access violation on step initialization

Help
2005-10-22
2012-07-26
  • Nobody/Anonymous

    hello,

    I am porting some code that uses gsl to windows. Build is okay but on run I get an access violation at the following line:

    gsl_odeiv_step* step = gsl_odeiv_step_alloc( gsl_odeiv_step_rkck, 2 );

    This is the first of four initialization statements for a runge-kutta-cash-karp integration. The stack trace is

    libgsl.dll!62d4dae8()
    ntdll.dll!7c926abe()
    <my function>

    each time I run it. Any suggestions/advice will be greatly appreciated. This code has been working on a linux platform for a long time.

    Thanks a lot,
    -Sam

     
    • Jerry S.

      Jerry S. - 2006-04-13

      If you're using the gsl-1.6 dll, please make sure that GSL_DLL and WIN23 are defined when compiling. Otherwise the import specifications are not set properly. This is by far the most common problem people have when using gsl on Windows.

      If this is not the problem, please provide more details about your system (compiler, dll or static lib, compile & link commands, native Win console or POSIX emulator (MSYS, CygWin), etc.) and we can explore further.

      Thank you for your question.
      Jerry

       
    • Nobody/Anonymous

      were you able to fix the problem?

       
MongoDB Logo MongoDB