Error: main.lua:4: cannot load module './libtest.so': %1 is not a valid Win32 application.
This seems to be the same for 0.10.2 and 11.1 . I thought that since LÖVE already uses LuaJIT, there shouldn't be problems like this, but maybe it's ZB's fault?
Hmm. Using *.so library on Windows looks strange for me. Shouldn't you compile as a *.dll? Also AFAIK to load dynamic library from current directory you should call ffi.load("<your library>", true). At least on Linux.
EDIT: Sorry, my statement about ffi.load "global" flag was incorrect. It has nothing to do with loading from current directory.