[Rcpp-devel] Rcpp on R 2.12.0 / windows / gcc 4.5
Romain Francois
romain at r-enthusiasts.com
Thu Sep 30 13:45:48 CEST 2010
Hello,
I spent some of my time this morning tweaking Rcpp so that it builds and
checks on the R 2.12.0 alpha (the latest snapshot) on windows with the
latest Rtools on both archs.
It appears to work fine at the latest svn revision (rev 2259).
I've sent it to the R-devel branch of win builder and posted a tarball
here: http://addictedtor.free.fr/misc/rcpp/Rcpp_0.8.6.3.tar.gz
I'd appreciate if other people would also try it, I'm always a bit
insecure when it comes to windows.
Our aim is to synchronize release of Rcpp 0.8.7 with the release of R 2.12.0
Issues were:
- the hello function in the module that is part of the testRcppmodule
package:
std::string hello() {
throw std::range_error( "boom" ) ;
}
This makes windows (or gcc 4.5, or something else) unhappy. This is
probably an issue with throw declarations, exceptions accross
translation unites, etc ... as we have seen before. For now, I commented
it out. This is low priority.
- fast indexing, i.e. as provided by the Rcpp::Fast class makes windows
unhappy, so I am only using Fast on other platforms. See the #ifndef
WIN32 in the Extractor.h file. This seems like a good enough workaround
for now. People who want faster indexing on windows are welcome to
submit a (((tested))) patch. Note that this is possible that the newer
compiler produces better code, so the need for the Rcpp::Fast trick
might not be needed at all.
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/cCmbgg : Rcpp 0.8.6
|- http://bit.ly/bzoWrs : Rcpp svn revision 2000
`- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th
More information about the Rcpp-devel
mailing list