Skip to content
Prev 8904 / 12125 Next

[R-pkg-devel] Unable to load Windows NETIO.SYS and WINSPOOL.DRV DLLs

On Sat, 11 Feb 2023 11:19:42 +0000
David Sterratt <David.C.Sterratt at ed.ac.uk> wrote:

            
The failure to load WINSPOOL.DRV is perplexing (it should normally be
possible to load as it's a system DLL that applications are supposed to
link against in order to be able to print), but NETIO.SYS should
probably be absent from the import list. At least it seems to be linked
against some kernel-related stuff that shouldn't be reachable from
userspace applications.

By removing -lnetio from PKG_LIBS, I was able to load the package and
run some example code from the JSS article, but then Rgui.exe crashed
on exit. I'm running R-4.2.2 and Rtools43 on a Windows 7 machine, which
could also be a source of the difference.

Does the Dependency Walker <https://dependencywalker.com/> provide you
any useful information about the package DLL besides what you already
know? (Some warnings deep in the dependency tree are to be expected.
R.DLL is not on the PATH so won't be automatically found, but other
dependencies should exist.)