Problem compiling under Version 1.2.1 (was mistakenly RE: [R] obs erved power)

Richards, Tom richards at pci.upmc.edu
Mon Jan 29 17:07:58 CET 2001


I am replying to Professor Ripley's response to my earlier message, which
mistakenly listed the subject.  Professor Ripley's response follows.

> -----Original Message-----
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Sent: Monday, January 29, 2001 3:40 AM
> To: Richards, Tom
> Cc: r-help at stat.math.ethz.ch
> Subject: RE: [R] observed power
> 
> 
> What has this to do with `observed power'?

Nothing:  see above.  Sorry for the mistake, it was 2:35 in the morning
here...

> 
> 
> On Mon, 29 Jan 2001, Richards, Tom wrote:
>		[snip]
> > This command yields 6, as it should, in version 1.1.1, but 
> crashes version
> > 1.2.1, with a "memory not read".
> >
> > If you're still reading at this point, please note that I 
> placed the two C
> > functions in a source file, and at the top I included:
> >
> > #define VC
> >
> > #include <math.h>
> > #include <R.h>
> > #include "Defn.h"
> > #include <Rdefines.h>
> 
> Don't use Defn.h!  It is not a shipped file and is not for casual
> use.  Quite possibly the problem.

Thanks.  I made the change.

> 
> You did not tell us how you linked this to make a DLL.  Using 
> the tools
> that come with 1.2.1 and the recommend compiler, this works for me
> if the non-existent Defn.h is omitted.

I took out the Defn.h line, and I compiled a file called DOIT.c in the VC++
IDE, along with a DOIT.def file, which contained the following

   LIBRARY		DOIT

   EXPORTS
   foo

I linked in the IDE, by including the path to Rdll.lib.
At the moment, even after omitting the Defn.h, I get the same "memory not
read" error.  I  installed the mingw32 compiler yesterday.  I will see if I
can understand how to use that, with gcc and dllwrap, as recommended in 'S
Programming'.  Thanks.


> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read 
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
>

-- 
Brian D. Ripley,                  ripley at 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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list