lua5.1 x lua51 {lib, dll}

100 views
Skip to first unread message

Denis Dos Santos Silva

unread,
Dec 21, 2014, 6:09:38 PM12/21/14
to lua...@googlegroups.com
Qual a diferença ?  O porque têm as duas?

  1. lua5.1.{lib, dll}
  2. lua51.{lib, dll}

=)

PS: 
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)

Antonio Scuri

unread,
Dec 21, 2014, 6:40:43 PM12/21/14
to lua...@googlegroups.com
 Dá uma olhada em:


 Que tem a explicação.

Atenciosamente,
Antonio Scuri


--
Lua BR - http://groups.google.com/group/lua-br
---
Você recebeu essa mensagem porque está inscrito no grupo "Lua BR" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para lua-br+un...@googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

Denis Dos Santos Silva

unread,
Dec 21, 2014, 8:32:46 PM12/21/14
to lua...@googlegroups.com

Agora, sim.

bacana esse tecmake.


---

Lua 5.1

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.

AIX/IRIX/SunOS   LUA_USE_POSIX    LUA_USE_DLOPEN
Linux/BSD/Cygwin   LUA_USE_POSIX    LUA_USE_DLOPEN    LUA_USE_READLINE
MacOSX   LUA_USE_POSIX    LUA_DL_DYLD

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.

Reply all
Reply to author
Forward
0 new messages