[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [SOLVED] Re: Building LPeg for Lua 5.3.0
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 16 Apr 2014 10:29:34 -0300
> After changing line 32 in lptypes.h from:
>
> #if (LUA_VERSION_NUM == 502)
>
> to
>
> #if (LUA_VERSION_NUM >= 502)
>
> 'make' succeeded in building a version of lpeg.so that gives the correct
> result.
That is still strange. With the old test (LUA_VERSION_NUM == 502), the
compilation should produce lots of warnings (e.g., "implicit declaration
of function ‘lua_getfenv’"), and then the dynamic linker would produce
a corresponding error:
../lua/lua: error loading module 'lpeg' from file './lpeg.so':
./lpeg.so: undefined symbol: lua_getfenv
-- Roberto