On 14.04.2012 19:01, Katharine Miller wrote:
Hi,

Sorry - I should have said that I was using Windows 7 on a 64 bit computer
in my earlier post.

Which Windows 7? 64-bit or 32-bit?


I used the installer to install R, I did not do a build from source.  I
have read the installation instructions.  Both R and Rtools are first in my
path, but by toolchain do you mean that I need to install the mingw-w64
toolchain?  Since the installation instructions indicate that Windows
64-bit is integrated into the R package and build systems, I assumed this
wasn't necessary - but that would be an easy fix!

You need Rtools 2.15 (and not earlier).
the gcc 4.6.3 is part of it (and it builds both 32 and 64 bit binaries)

Uwe




Thank you.

- Katharine



2012/4/14 Uwe Ligges<lig...@statistik.tu-dortmund.de>



On 14.04.2012 00:24, Katharine Miller wrote:

Hi,

I have some C++ code that I compiled into a dll for use in 32 bit R and
would like to recompile for use in 64bit R.  I thought it would be as easy
as going to R-2.15.0\bib\x64 and running R CMD SHLIB mfregRF.c



Is this Windows?

1. If so, is your OS 64-bit? Otherwise that R won't run for you.
2. Do you have the latest toolchain first in your PATH?
3. Do yo follow the details of the most recent version of the R
Installation and Administration manual?

Uwe Ligges






   but that doesn't do anything.  It doesn't give me any error messages, but
it also doesn't create a shared (so) file. I just get the command prompt
back.

  I also tried \bin\x64 R CMD SHLIB - help, and again got nothing but the
command prompt back.

Just to check, I ran R CMD SHLIB from \bin\i386 on the same C++ files and
it produced a working dll just like usual.

Is there something that I need to do to the C++ files to make them
compatible with 64 bit?  They are not file that I made, so I do not know
how they were originally compiled.

Thanks for any help.

- Katharine

        [[alternative HTML version deleted]]

______________________________**________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide http://www.R-project.org/**
posting-guide.html<http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.




______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to