From bellis@hsph.harvard.edu  Sat Apr  7 22:32:52 2001
From: bellis@hsph.harvard.edu (bellis@hsph.harvard.edu)
Date: Sat, 7 Apr 2001 23:32:52 +0200 (MET DST)
Subject: [Rd] silent extern error (PR#898)
Message-ID: <200104072132.XAA01726@pubhealth.ku.dk>

Full_Name: Byron Ellis
Version: 1.2.2
OS: all
Submission from: (NULL) (140.247.105.95)


R_ext/Arith.h

#ifdef MAIN
#define extern
#endif
#ifdef __cplusplus
extern "C" {
#endif

these two should be reversed. Its never a problem because builds aren't done
against C++ compilers, but its still an error (just a low priority one).

also, you could change that to

#ifdef __cplusplus
extern "C" {
#endif
#ifdef __MAIN__
#define extern
#elif _MSC_VER
#define extern __dllspec(dllimport)
#endif

with the corresponding change to the #undef region. This would allow people to
develop for R using MSVC++ more easily.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] silent extern error (PR#898)
bellis@hsph.harvard.edu