lua-users home
lua-l archive

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


On 20/02/13 19:46, Luiz Henrique de Figueiredo wrote:
Thanks. It does too in OSX 10.7.5, which is the last one I have access to. I'm especially interested in how it fares in the various flavors of Linux/BSD/etc, now that we've removed -lncurses from the link line.

Slackware64 13.37
gcc-4.5.2
glibc-2.13
ncurses-5.9
readline-5.2

'make linux' bombed without the -lncurses option.

gcc -o lua   lua.o liblua.a -lm -Wl,-E -ldl -lreadline
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `PC' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `tgetflag' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `tgetent' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `UP' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `tputs' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `tgoto' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `tgetnum' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `BC' /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status

Added it back in and it built fine.

Scott