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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
were you able to fix the problem?