Hello,

The procedure for creating an import library (Rdll.lib) that is documented
in gnuwin32/README.packages works fine using the i386 architecture, but
it doesn't seem to work under x64.

Specifically, the procedure is:
pexports R.dll > R.exp
lib /def:R.exp /out:Rdll.lib /machine:X86 R.dll

There are two issues under x64:
1. Older version of pexports crash when applied to an x64 R.dll.
    The work-around is to use one of the newer versions that have
    been fixed (pexports-9.44, say).
2. When lib is applied to an x64 R.dll it complains as follows:
R.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x318

This happens even when the /def:R.exp parameter is left out, for
example, with lib /out:Rdll.lib R.dll.

Any tips would be much appreciated.

Thanks,
Dominick

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to