I'm trying to incorporate a collection of Fortran files into R for my research (files are located at http://tyrosine.usc.edu/closure). The files have been compiled into .dll format using MinGW32's GNU Fortran compiler (4.8.1-4). I'm running 32-bit Windows 7, and 32-bit R (3.1.2) via RStudio (0.98.1028).
Since R, Windows, and WinGW32 are 32-bit, this shouldn't be a standard 64-bit vs 32-bit problem, as suggested here:
and here:
Using the rJava package on Win7 64 bit with R
The error is:
dyn.load("close1.dll") Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Users/Morgan/Desktop/close1.dll': LoadLibrary failure: %1 is not a valid Win32 application. nd .
Could it be that the files need to be converted into a package first, given that there are dependencies between them?
Edit: For clarification, I am the one compiling the files into .dll. The files are .tgz compressed.