Florian Burkart
2012-Nov-01 17:49 UTC
[R] Looking for mingw32-make.exe (make.exe not working) in RTools
Hi, I am using premake4 generated make files to compile my projects, which works fine if I am using mingw32-make.exe from the MinGW 32 bit distribution, but doesn't work with the make.exe supplied by the latest RTools 2.16. That make.exe first complains it can't create directories and then that it has "no rule". So how comes there is no mingw32-make.exe along with RTools? I installed MinGW separately, in which case everything compiles fine with the provided mingw32-make.exe, but I am using a different version to RTools, so I am hesitant mixing the two, and also it doesn't support 64 bit. I have been looking a bit into MinGW 64 bit but that looks a bit more cumbersome (no straight forward installer, different versions, maybe compiling from source, problems linking to windows dlls, ...), so I went back to trying RTools as these nicely enough have both 32 and 64 bit support (and work with my R distro), but sadly don't have a mingw32-make.exe I could use. Could someone please shed a bit of light on this? Thank you, Florian [[alternative HTML version deleted]]
Florian Burkart
2012-Nov-06 19:46 UTC
[R] Looking for mingw32-make.exe (make.exe not working) in RTools
Hi again, I am still struggling with this unfortunately. I installed 64 bit MinGW (rubenvb's personal build) and managed to fully compile boost (static libraries) and my library (shared library), after a fair amount of pain. I can now even load my library with dyn.load. However, I can't call my functions ("C symbol name "xxx" not in load table"). I tried to reproduce what "Rcpp" and "inline" do in terms of compiling, and I even looked into a such generated DLL with getDLLRegisteredRoutines, as I was worried that my library didn't have any registered routines, but neither do the "inline" generated DLLs have registered routines. So I am a bit stuck - I am aware that I diverged from the Rtools build, but unfortunately I haven't gotten very far with those. Mainly I get stuck on the missing mingw32-make.exe. Any ideas how I should move forward? Is my problem different compiler versions? Does mingw32-make.exe not work with R? Please note that all my code works just fine on linux, e.g. function declarations are exported with RcppExport (which is basically just a macro to Extern "C") and such. Thanks, Florian [[alternative HTML version deleted]]
Apparently Analagous Threads
- Rtools version 3.3.0.1957 looking for C even though RTOOLS variable is pointing elsewhere
- Rtools version 3.3.0.1957 looking for C even though RTOOLS variable is pointing elsewhere
- windows rtools missing gfortran.exe?
- Error using Rcpp under windows xp
- Calling C++ from R