天天看點

編譯lua5.3.5報錯:libreadline.so存在多處未定義的引用

大哥,咱這軟體是怎麼編譯,怎麼釋出的?

make[1]: 進入目錄“/home/quantum6/freeswitch/lua-5.3.5/src”
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: 進入目錄“/home/quantum6/freeswitch/lua-5.3.5/src”
gcc -std=gnu99 -o lua   lua.o liblua.a -lm -Wl,-E -ldl -lreadline 
//usr/local/lib/libreadline.so:對‘tputs’未定義的引用
//usr/local/lib/libreadline.so:對‘tgoto’未定義的引用
//usr/local/lib/libreadline.so:對‘tgetflag’未定義的引用
//usr/local/lib/libreadline.so:對‘UP’未定義的引用
//usr/local/lib/libreadline.so:對‘tgetent’未定義的引用
//usr/local/lib/libreadline.so:對‘tgetnum’未定義的引用
//usr/local/lib/libreadline.so:對‘PC’未定義的引用
//usr/local/lib/libreadline.so:對‘tgetstr’未定義的引用
//usr/local/lib/libreadline.so:對‘BC’未定義的引用
collect2: error: ld returned 1 exit status
Makefile:63: recipe for target 'lua' failed      

參考:

https://blog.csdn.net/quantum7/article/details/106175032

繼續閱讀