s-news
[Top] [All Lists]

Re: SPlus and gcc compiler

To: s-news@lists.biostat.wustl.edu
Subject: Re: SPlus and gcc compiler
From: Urs Wagner <wagner@itp.phys.ethz.ch>
Date: Wed, 25 Aug 2004 12:43:57 +0200
In-reply-to: <Pine.LNX.4.44.0408251107060.9329-100000@gannet.stats>
References: <Pine.LNX.4.44.0408251107060.9329-100000@gannet.stats>
User-agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
You guess correctly gcc, SPlus 6.2 and C.
I am using Your manual! I think a made a mean mess. I get now the exported symbol cSlrFit. But another question is the batch mode. When I call splus CHAPTER -d ... the gui is started.
The problem is I can now build the S.dll but not the ssc source.
I should have a batch prodecure to build my own S Plus Package containing C code.

Thanks

Urs

Prof Brian Ripley wrote:

So, you are on Windows it seems.  Let me guess you are using S-PLUS 6.2,
and you appear to be using C++. (Should we have to guess all this,
though?)

See the latest complements to `S Programming' at
http://www.stats.ox.ac.uk/pub/MASS3/Sprog for how to do this.

On Wed, 25 Aug 2004, Urs Wagner wrote:

I have tried to build the S.dll in SPlus with gcc. The build works but I

have trouble with
the function call.
Is there a possiblity to use the windows dll Def files?
The exported  symbol is _Z7cSlrFitPdS_PiS_S_S_
I would like to use the call .Call("cSlrFit", ...) or .C("cSlrFit", ...)
how must I do that?

Use C, not C++



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