[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: USE_READLINE
- From: Reuben Thomas <rrt@...>
- Date: Fri, 7 Dec 2001 17:15:15 +0000 (GMT)
> 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.