1

I'm using Luarocks 2.2.0beta1 to install luafilesystem on windows 7 with lua 5.2 and mingw. I got this error:

>luarocks install luafilesystem
Installing http://rocks.moonscript.org/luafilesystem-1.6.2-2.src.rock...
Using http://rocks.moonscript.org/luafilesystem-1.6.2-2.src.rock... switching to 'build' mode
mingw32-gcc -O2 -c -o src/lfs.o -IC:/lua/include/src/lfs.c
mingw32-gcc -shared -o lfs.dll src/lfs.o C:/lua/bin/lua52.dll -lm
C:\lua\bin\lua52.dll: file not recognized: File format not recognized
collect2.exe: error: Id returned 1 exit status

Error: Build error: Failed compiling module lfs.dll

any idea how to fix this?

note: until now, I have no problem installing other module with luarocks that have no dependency with luafilesystem.

4

1 回答 1

2

解决了,出现这个问题是因为实际上我在构建时没有使用相同的 MinGW 编译器lua52.dll。我不知道我第一次使用哪个编译器。感谢@siffiejoe

于 2015-01-09T05:00:11.250 回答