lua-users home
lua-l archive

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


No it wont work but this does


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

cl /MT /O2 /W3 /c l*.c print.c
del lua.obj
link /out:luac.exe luac.obj print.obj l*.obj

The last link produces one warning which can be ignored.

db

On 3/27/07, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
One thing that I'd like to fix before the freeze is etc/luavs.bat,
which currently does not build luac.exe. Here is its current contents:

   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
   cd ..

Would the version below work? (Sorry, I don't have access to Visual Studio.)

   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
+  cl /O2 /W3 /c luac.c print.c
+  link /out:luac.exe luac.obj print.obj lua51.lib
   cd ..

(I have naively removed /DLUA_BUILD_AS_DLL from the luac compilation line.)
If not, is there a simple fix?
Thanks.
--lhf