lua-users home
lua-l archive

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


> when moidifying config with POSIX= -D_POSIX_SOURCE -DUSE_READLINE
> -->
> gcc -O2 -ansi -pedantic -Wall -I../../include    -D_POSIX_SOURCE -DUSE_READLINE
> -c -o lua.o lua.c
> gcc -o ../../bin/lua  lua.o -L../../lib -llua -llualib -lm
> lua.o(.text+0x68e):lua.c: undefined reference to `_imp__readline'
> lua.o(.text+0x7da):lua.c: undefined reference to `_imp__add_history'

You need to link against readline, i.e. -lreadline -lhistory (or whatever
the libraries are called) to the LIBS variable in the makefile.