<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I am working on a WIN64 platform and trying to install from source a
package "myPackage" that links to dll compiled in 64 bits.<br>
<br>
Under R prompt I launch<br>
<blockquote>install.packages("/Path/To/myPackage.tar", , repos =
NULL, type="source")<br>
</blockquote>
<br>
and I read that it is the 32 versions of g++ that is used <br>
<br>
<blockquote>g++ <b>-m32</b> -shared -s -static-libgcc -o
myPackage.dll tmp.def toto01.o toto02.o RcppExports.o toto03.o
-LC:/Path/To/MyWIN64Libraries -laWIN64Lib
-Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386
-Ld:/RCompile/CRANpkg/extralibs64/local/lib <b>-LC:/PROGRA~1/R/R-31~1.0/bin/i386</b>
-lR<br>
</blockquote>
<br>
There are several things I do not understand in this trace:<br>
<blockquote>a) the -m32<br>
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;...)<br>
</blockquote>
<br>
When I compile through DOS and enter <br>
<blockquote>R CMD INSTALL --no-multiarch myPackage<br>
</blockquote>
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 ?<br>
<br>
Best regards, Jérôme<br>
</body>
</html>