On Wed, 4 Apr 2001, Richard Beare wrote:
> Hi,
>
> I've been using Rprintf from a shared library compiled under various
> unix flavour for a while now. I get a warning about Rprintf being
> undefined when constructing the library, but everything works OK after
> loading.
>
> I've also been cross compiling the same library using the mingw32 tools
> for a while now, but the inclusion of Rprintf seems to be messing up
> this process. It can't handle the missing symbol. Is anyone aware of a
> trick with the mingw32 stuff to get around this?
> Thanks
The `trick' is to read the introductory documentation.
R-exts.texi has
The recommended procedure to use these is to include the header file
@file{R.h} in your C code by
@example
#include <R.h>
@end example
If you do that, Rprintf *is* defined (via R_ext/Print.h)
That said, I have never seen problems under Windows, so are you doing
that properly (using the correct import library)?
--
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-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._