From: Fla As Date: 2007-12-20T23:36:47+09:00 Subject: Re: SWIG function problem Your link doesn't help. My little code is atteched. Can you please remove my email address from your last message? Jano Svitok wrote: >> And I try to write the next-function in c >> float gen_random(int *last, float max, int IM, int IA, int IC) { >> *last = (*last * IA + IC) % IM; >> return (max * *last / (float)IM); >> } >> and with help SWIG I try make useable in Ruby but I can not. > > See http://www.swig.org/Doc1.3/Ruby.html#Ruby_nn32 > (you can reuse your original header if you #ifdef swig directives, see > swig doc for more info). > > If that doesn't help, please post somewhere your code, including ruby, > c, and swig header. It would make reproducing your problem easier. > > J. Attachments: http://www.ruby-forum.com/attachment/1183/swig.tar.bz2 -- Posted via http://www.ruby-forum.com/.