Eli Zaretskii eliz@gnu.org writes:
Did you try declaring the prototype of that function with '__attribute__((dllexport))' when compiling the DLL, and with '__attribute__((dllimport)' when linking against the DLL?
No. But I think I've found a solution. I need to do like gcc and add
.def _nettle_arcfour_crypt; .scl 2; .type 32; .endef
in the assembly file. 32 is DT_FCN (see http://www.delorie.com/djgpp/doc/coff/symtab.html). Without this, I get T_NULL instead, and that somehow works with thatic linking but not wth dynamic linking. Now I only have to get configure to set this up correctly.
Some questions remain. Why didn't the other tests of functions with assembly implementation, in particular md5-test and sha1-test, fail in the same way?
Regards, /Niels