[Rd] simple C function segfaults

Bernd Kriegstein kriegstn at yahoo.de
Tue Feb 21 06:08:54 CET 2006

Berwin thanks, I tried that, but it didn't work. There
is a conflict in using a pointer for the operation
defined in the #define. The error message is:

pico.c:17: warning: comparison between pointer and

Suppose that I use pointers for n and m. What should I
alter in the program in order for the column-major
mode index in the #define to work?


- b.

--- Berwin A Turlach <berwin at maths.uwa.edu.au>

> >>>>> "BK" == Bernd Kriegstein <kriegstn at yahoo.de>
> writes:
>     BK> void pico ( double *y, int n, int m )
>                                ^^^^^^^^^^^^^
> Everything is passed from R to C as pointer, so
> these should be
> pointers.
> Hope this helps.
> Cheers,
>         Berwin

More information about the R-devel mailing list