s-news
[Top] [All Lists]

[S] dyn.load

To: s-news@wubios.wustl.edu
Subject: [S] dyn.load
From: Chunlei Ke <kechlei@pstat.ucsb.edu>
Date: Sun, 28 May 2000 21:48:45 -0700 (PDT)
Reply-to: Chunlei Ke <kechlei@pstat.ucsb.edu>
Sender: owner-s-news@wubios.wustl.edu
Dear Splus-user,

I have a question on dyn.load in Splus 3.4 on Unix. 
(I am sorry if it is too simple). I gathered together 
a couple of Splus, C and Fortran functions I wrote and 
borrowed, and tried to use Splus CHAPTER to make a 
chapter. "dyn.load" was used in Makefile.

But when I tried to load the generated file, 
the following error message 
appeared:
> dyn.load("snmm_l.o")
Error in dyn.load("snmm_l.o"): no definition for 1 symbols
In addition: Warning messages:
  Undefined symbol: loadWhich_ in: dyn.load("snmm_l.o")
Dumped

> traceback()
Message: no definition for 1 symbols 
3: invisible(.Internal(dyn.load(names, undefined), "S_dynload"))
2: dyn.load("snmm_l.o")
1: 

After looking into my S+ files, I found that the error was
related to one Splus file, which contains the following:
...
        switch(family,
                binary = loadWhich <- "dbsdr",
                binomial = loadWhich <- "dbisdr",
                poisson = loadWhich <- "dpsdr",
                gamma = loadWhich <- "dgsdr",
                stop("unknown family")) 
...
        result <- .Fortran(loadWhich,...
...             

So dyn.load couldn't find out "loadWhich" to load, which is 
generated inside. 

Can someone tell me how to solve this problem by not repeating 
.Fortran command 4 times?


Thank you very much!

Chunlei Ke

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