[Rcpp-devel] RcppEigen: .conservativeResize() on 32-bit Windows

Andreas Alfons andreas.alfons at econ.kuleuven.be
Thu Apr 5 09:52:43 CEST 2012


> Difficulties with this code would not originate in the R garbage
> collection.  You are only passing two arguments as SEXPs and those are
> immediately converted to local int's.  After that everything is done
> in objects allocated and controlled by Eigen.
>
> The fact that you are compiling the code for 32-bit R running in
> 64-bit Windows would suggest that somewhere along the line the
> compiler may be confused about the size of objects.  It should be the
> case that the base integer type is a 32-bit integer but I would not be
> surprised if there are some gliches.  At times it is difficult to mix
> and match the include files for the mingw system used to compile R for
> Windows and the Windows include files, wherever they are.

Thanks for the explanation!  I'll investigate this a bit further.  It
doesn't only happen with integers, but also with doubles.  Maybe it is
an alignment issue?

- Andreas


> As I don't have easy access to a Windows system with the R development
> tools installed I don't think I can help debug this.



-- 
Andreas Alfons
Faculty of Business and Economics, KU Leuven
www.econ.kuleuven.be/andreas.alfons/public/


More information about the Rcpp-devel mailing list