On Tuesday 04 September 2007 07:34, Sergey Plis wrote: > Unfortunately! > > If I use my helper library - everything works. If I use func' in the > following way: > > libgsl _gsl_odeiv_step_rk4 (int) gsl_odeiv_step_rk4 > > : gsl_odeiv_step_rk4 func' _gsl_odeiv_step_rk4 @ ;
func' is not state smart. > Then gsl_odeiv_step_rk4 does return an address, but when it gets passed > to the allocate routine of gsl - the library crashes (gdb gives): > > Program received signal SIGSEGV, Segmentation fault. > 0xb7798164 in gsl_odeiv_step_rk4 () from /usr/lib/libgsl.so.0 > > So probably this nice additional function needs to be corrected. I've added a [func'] word to callback.fs, so : gsl_odeiv_step_rk4 [func'] _gsl_odeiv_step_rk4 @ ; should work. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://www.jwdt.com/~paysan/
pgpTkrMfKDaCl.pgp
Description: PGP signature
