[Rcpp-devel] g++ -m32 used on WIN 64

Jerome MARQUET jerome.marquet at lixoft.net
Mon May 19 11:15:36 CEST 2014


I am working on a WIN64 platform and trying to install from source a 
package "myPackage" that links to dll compiled in 64 bits.

Under R prompt I launch

    install.packages("/Path/To/myPackage.tar", , repos = NULL,

and I read that it is the 32 versions of g++ that is used

    g++ *-m32* -shared -s -static-libgcc -o myPackage.dll tmp.def
    toto01.o toto02.o RcppExports.o toto03.o
    -LC:/Path/To/MyWIN64Libraries -laWIN64Lib
    *-LC:/PROGRA~1/R/R-31~1.0/bin/i386* -lR

There are several things I do not understand in this trace:

    a) the -m32
    b) why it is 32bits version of R that is used when my path contains
    the 64 version (PATH = ...;C:\Program Files\R\R-3.1.0\bin\x64;...)

When I compile through DOS and enter

    R CMD INSTALL --no-multiarch myPackage

I observe that it is the correct (64 bits) version that is used but I 
would rather install my package through the usual install.packages 
command. Is there a way to do this ?

Best regards, Jérôme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140519/dc38813a/attachment.html>

More information about the Rcpp-devel mailing list