On Feb 11 11:36, Reuben Thomas wrote: > On Fri, 10 Feb 2023 at 14:21, Bruno Haible <br...@clisp.org> wrote: > > > It complains about the symbols defined in libiconv. This means, you need > > to invoke the Gnulib module 'iconv' and add $(LIBICONV) or $(LTLIBICONV) > > to the LDFLAGS. > > > > Bruno to the rescue again! Many thanks. > > Having added the iconv gnulib module, the Windows build works, but the > tests, which use a Cython module, are now broken. The actual error is: > > Traceback (most recent call last): > File "D:\a\recode\recode\tests\pytest", line 135, in main > module = __import__(base[:-3]) > File "D:/a/recode/recode/tests/./t21_names.py", line 2, in <module> > import common > File "D:/a/recode/recode/tests/./common.py", line 10, in <module> > import Recode > ImportError: DLL load failed while importing Recode: The specified module > could not be found. > > I assume that the "DLL load failed" indicates a link error.
If you're sure that the native recode.dll has been built, is it possible that it's just not found, because it's not in Windows' DLL search path? Keep in mind that Windows searches DLLs in the OS default paths, in $PATH, or in the same dir the executable has been started from. https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order So at a guess, you either just have to add the directory where recode.dll resides to $PATH, or you have to copy the DLL into a path already in $PATH. Corinna