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

About this list Date view Thread view Subject view Author view Other groups

Subject: Problem compiling under Version 1.2.1 (was mistakenly RE: [R] obs erved power)
From: Richards, Tom (richards@pci.upmc.edu)
Date: Tue 30 Jan 2001 - 02:07:58 EST


Message-ID: <5B9B19C8A522D411A8EC00A0C99D6A9A02E6E8@mail.nsabp.pitt.edu>

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@stats.ox.ac.uk]
> Sent: Monday, January 29, 2001 3:40 AM
> To: Richards, Tom
> Cc: r-help@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@stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
>

-- 
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 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@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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:44 EST