On 5 May 2012, at 09:31, Rena wrote: > Did lua_tointeger change in 5.2? Yes, in 5.1 it is a function, in 5.2 it is a macro that expands to lua_tointegerx I think you may need to compile your library separately for both 5.1 and 5.2. Kev