Go 1.9
jmh530 via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 26 05:20:02 PDT 2017
On Monday, 26 June 2017 at 01:31:43 UTC, bachmeier wrote:
> [snip]
> 3. Windows requires R.lib for compilation, so I created that by
> installing the MinGW pexports.exe utility.
>
> C:\MinGW\bin\pexports.exe R.dll > R.def
>
You might make reference to cd to the folder that R.dll for x64
is in, for me it was
C:\Program Files\R\R-3.3.3\bin\x64
I also got access denied, so used administrative cmd.
RTools hadn't installed pexports, so I installed a new MinGW.
> Then create the .lib using Visual Studio:
>
> "C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\bin\lib.exe" /def:R.def /out:R.lib /machine:x64
>
I have Visual Studio 2017 installed, so I used
"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\lib.exe" /def:R.def /out:R.lib /machine:x64
but got the error
LINK : fatal error LNK1171: unable to load mspdb140.dll (error
code: 126)
So I tried to use my Visual Studio 12 (did not have 14
installed). That seemed to work.
> 4. Create librtest.dll using LDC:
>
> "C:\Users\lance\ldc64\ldc2-1.3.0-beta2-win64-msvc\bin\ldmd2.exe" -shared -m64 librtest.d r.d -version=inline R.lib
Path adjusted for my location of ldc2. Also, I had
ldc2-1.3.0-beta1. Also, first you need to cd back to the original
location.
Then, this caused a problem because it used my 2017 Visual Studio
instead of the Visual Studio 12.0. So I gave up, for now, at this
point.
I might make another effort on this after work if I have time.
More information about the Digitalmars-d
mailing list