lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Peter Kümmel wrote:
> Here a very small fix: remove all obj files when finished
> 
> file: etc/luavs.bat
> 
> cd src
> cl /O2 /W3 /c /DLUA_BUILD_AS_DLL l*.c
> - del lua.obj luac.obj
> link /DLL /out:lua51.dll l*.obj
> cl /O2 /W3 /c /DLUA_BUILD_AS_DLL lua.c
> link /out:lua.exe lua.obj lua51.lib
> + del *.obj
> cd ..
> 
> 
> 

Must be (to avoid linker errors):

cd src
cl /O2 /W3 /c /DLUA_BUILD_AS_DLL l*.c
del lua.obj luac.obj
link /DLL /out:lua51.dll l*.obj
cl /O2 /W3 /c /DLUA_BUILD_AS_DLL lua.c
link /out:lua.exe lua.obj lua51.lib
+ del *.obj
cd ..