Re: [Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Vladimir Eremeev
sorry, forgot to mention. krui_getVersion returns char * SEXP snns_getVersion(void) {SEXP version; char *v; PROTECT(version=NEW_CHARACTER(15)); v=CHARACTER_POINTER(version); strcpy(v,krui_getVersion()); UNPROTECT(1); return version; } -- View this message in context:

[Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Vladimir Eremeev
I am writing bindings to the neural network simulator SNNS. At present I have used only .C interface, now I'm studying .Call interface. I have adapted the example from page 77 of r-exts.pdf, however, it crashes R. I use MingW as recommended by Duncan Murdoch. Please, tell me what I am missing.

Re: [Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Brian Ripley
No, in answer to the subject line. On Tue, 23 Jan 2007, Vladimir Eremeev wrote: I am writing bindings to the neural network simulator SNNS. At present I have used only .C interface, now I'm studying .Call interface. I have adapted the example from page 77 of r-exts.pdf, however, it crashes

Re: [Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Peter Dalgaard
Brian Ripley wrote: No, in answer to the subject line. On Tue, 23 Jan 2007, Vladimir Eremeev wrote: I am writing bindings to the neural network simulator SNNS. At present I have used only .C interface, now I'm studying .Call interface. I have adapted the example from page 77 of