From kriegstn at yahoo.de  Tue Feb 21 06:08:54 2006
From: kriegstn at yahoo.de (Bernd Kriegstein)
Date: Tue, 21 Feb 2006 06:08:54 +0100 (CET)
Subject: [Rd] simple C function segfaults
In-Reply-To: <17402.40716.876104.217975@bossiaea.maths.uwa.edu.au>
Message-ID: <20060221050854.34720.qmail@web27410.mail.ukl.yahoo.com>

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
integer

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?

Thanks,

- b.

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

> >>>>> "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
> 
>



[Rd] simple C function segfaults
Bernd Kriegstein