1.下载并解压LuaJIT

http://luajit.org/download.html

2.修改为静态编译

打开LuaJIT目录srcmsvcbuild.bat
搜索替换LJARCH=x64为LJARCH=x86
搜索替换/MD为/MT

3.使用VS命令提示符

cd /d LuaJIT目录src
编译DLL:msvcbuild.bat
编译LIB:msvcbuild.bat static