s-news
[Top] [All Lists]

Re: SPlus and gcc compiler

To: Urs Wagner <wagner@itp.phys.ethz.ch>
Subject: Re: SPlus and gcc compiler
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Wed, 25 Aug 2004 11:10:25 +0100 (BST)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <412C61A4.2020503@itp.phys.ethz.ch>
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++

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


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