请教(很急,在线等待,谢谢)
我是在zebra的基础上作的一个配置防火墙的命令行管理程序,在linux下已经安装了readline库,可是当我便以vtysh目录时,老师出现如下错误:
ww:/home/guzq/zebra/vtysh# make
gcc -g -O2 -Wall -o vtysh vtysh_main.o vtysh.o vtysh_cmd.o vtysh_user.o vtysh_config.o ../lib/libzebra.a -lm -lresolv -lcrypt
vtysh_main.o: In function `sigtstp':
/home/guzq/zebra/vtysh/vtysh_main.c:80: undefined reference to `rl_initialize'
vtysh_main.o: In function `sigint':
/home/guzq/zebra/vtysh/vtysh_main.c:100: undefined reference to `rl_initialize'
/home/guzq/zebra/vtysh/vtysh_main.c:102: undefined reference to `rl_forced_update_display'
vtysh_main.o: In function `vtysh_rl_gets':
/home/guzq/zebra/vtysh/vtysh_main.c:180: undefined reference to `readline'
/home/guzq/zebra/vtysh/vtysh_main.c:184: undefined reference to `add_history'
。。。
那位大侠能够告诉我为什么会出现上述错误?急死了
我是用#include <readline/readline.h>包含该库的,上述变量和函数在该文件中定义