LuaBinaries distribution of Lua 5.1 uses the same default configuration of the makefiles provided by the Lua.org distribution tar file, but using "lua5.1" as library and program names. A small difference is that the "etc/bin2c.c" utility is re-added to the distribution.
LUA_USE_POSIX LUA_USE_DLOPEN LUA_USE_READLINE
In Windows the default configuration also enable equivalent definitions for LUA_USE_ISATTY and LUA_USE_POPEN (part of LUA_USE_POSIX). And LUA_DL_DLL is also defined. The executables contain support for command line globing (so you can use "lua5.1 *.lua"). The executables are dependent on the "lua5.1.dll" library. The modules default search path (LUA_CPATH definition) also includes the "clibs" subfolder.
In UNIX the executables exports the Lua functions, so they are not dependent on the LuaBinaries dynamic libraries.
Note 1: The name "lua5.1" was a decision we made at the release of LuaBinaries for Lua 5.1.0. Unfortunately it was a bad decision, but because of several applications compatibility we will keep it until Lua 5.2.0 is released.
Note 2: The default LUA_CPATH supports the "51" suffix used in Tecgraf libraries.
Em domingo, 21 de dezembro de 2014 21h09min38s UTC-2, Denis Dos Santos Silva escreveu:
Qual a diferença ? O porque têm as duas?
1. tô ciente da diferença de .lib e .dll - a primeira estática (linkada em compile-time (incorporando o .exe) e a segunda em run-time)