|
Change this option in src/msvcbuild.bat: from @set LJCOMPILE=call cl /nologo /c /MD /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE to (MD -> MT) @set LJCOMPILE=call cl /nologo /c /MT /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE ref from cl.exe help -LINKING- /LD Create .DLL /LDd Create .DLL debug library /LN Create a .netmodule /F<num> set stack size /link [linker options and libraries] /MD link with MSVCRT.LIB /MT link with LIBCMT.LIB /MDd link with MSVCRTD.LIB debug lib /MTd link with LIBCMTD.LIB debug lib You need to link with LIBCMT.LIB On 4/19/2012 10:01 AM, Shmuel Zeigerman wrote:
On 19/04/2012 18:24, Mike Pall wrote:That's why the preprocessed files in the releases and in the git repository do not contain such lines. Apparently your source tree is not clean (probably using it from both Linux and Windows). Try 'make distclean' or even 'make cleaner'.'make cleaner' worked, many thanks! Another question please: is there a way to build LuaJIT with the Windows SDK "statically" so that it wouldn't depend on msvcr100.dll ?