lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 13.03.2012 22:53, Petite Abeille wrote:

On Mar 13, 2012, at 10:40 PM, Axel Kittenberger wrote:

PTYs and Piping don't mix well

Perhaps of interest:

lpty - PTY control for Lua
http://www.tset.de/lpty/

Yes, that sounds interesting! But compilation fails (with gcc-4.5.3):

-----
gcc -O2 -fPIC -I/usr/local/include -c lpty.c -o lpty.o
lpty.c:182:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lpty_meta'
lpty.c: In function 'luaopen_lpty':
lpty.c:657:22: error: 'lpty_meta' undeclared (first use in this function)
-----

Apparently "lpty_meta" is unknown. After removing this word, it compiles, but lptytest.lua crashes:

-----
lua: attempt to index a nil value
stack traceback:
        [C]: in function 'new'
        lptytest.lua:3: in main chunk
        [C]: ?
-----


Bernd

--
Bernd Eggink
http://sudrala.de