[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSQL- Installation Problem
- From: David Manura <dm.lua@...>
- Date: Sat, 5 May 2012 01:25:15 -0400
On Sat, May 5, 2012 at 12:56 AM, Sandeep Ghai <sandeep.ghai92@gmail.com> wrote:
> src/luasql.h:24:73: warning: type defaults to ‘int’ in declaration of
> ‘luaL_reg’
> src/luasql.h:24:82: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
I've seen this type of error when moving some modules to Lua 5.2.
luaL_reg is a type defined in Lua 5.0. It was deprecated in Lua 5.1
in favor of luaL_Reg but retained a compatibility macro
("lauxlib.h:#define luaL_reg luaL_Reg"), but that compatibility macro
was removed in Lua 5.2. There appear to be 5.2 compatibility patches
a month ago in the latest luasql github sources that perhaps resolve
this [1].
[1] https://github.com/keplerproject/luasql/commits/master