s-news
[Top] [All Lists]

Re: [S] Dynamic Load in S-PLUS 3.3 for DEC alpha, OSF1 V3.2

To: Stephen Kaluzny <spk@statsci.com>, s-news <s-news@wubios.wustl.edu>
Subject: Re: [S] Dynamic Load in S-PLUS 3.3 for DEC alpha, OSF1 V3.2
From: "Paul Y. Peng" <ypeng@math.mun.ca>
Date: Sat, 30 Jan 1999 00:56:06 -0330
Organization: http://www.math.mun.ca/~ypeng
References: <199901292356.PAA28473@postal.statsci.com>
Sender: owner-s-news@wubios.wustl.edu
Stephen,

I tested your revised sample.c and got the same problem. I still
think there must be something missing, either in the S-PLUS
installed in our server or in my compilation.

Do you have any file with extension .so in your SHOME directory
which may potentially be used to resolve any references in this
compilation? Could you please send me the complete output of
"Splus SHLIB sample.c", or send me your makefile if you didn't
use Splus SHLIB?

My system is DEC OSF1 V3.2 62 alpha.

Thank you for your prompt reply. Paul.

Stephen Kaluzny wrote:
> 
> I had no problem loading and running your sample.c code into S-PLUS 3.3
> AFTER I changed the code to match the code in the S-PLUS Programmer's
> Manual:
> 
> Change:
>         if (is_na(x[i], DOUBLE)) {
> to
>         if (is_na(&x[i], DOUBLE)) {
> 
> I tried this on both:
>         OSF1 V3.2 17 alpha
> and
>         OSF1 V4.0 878 alpha
> 
> Here is my S-PLUS function:
> 
> "my.sum"<-
> function(x)
> {
>         .C("my_sum",
>                 as.double(x),
>                 length(x),
>                 double(1),
>                 NAOK = T)[[3]]
> }
> 
> Regards,
>  Stephen Kaluzny
>  MathSoft DAPD
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>