请教个编译问题

atiansk2006 2013-11-15 05:09:18
信息如下:

......../menubox.c:220: undefined reference to `acs_map'
......../menubox.c:220: undefined reference to `waddch'
......../menubox.o: In function `do_scroll':
......../menubox.c:176: undefined reference to `wrefresh'
......../menubox.o: In function `print_arrows':
......../menubox.c:149: undefined reference to `wrefresh'
......../menubox.o: In function `do_print_item':
......../menubox.c:99: undefined reference to `wrefresh'
......../menubox.o: In function `print_buttons':
......../menubox.c:165: undefined reference to `wrefresh'
collect2: ld returned 1 exit status
make[1]: *** [mconf] Error 1
make: *** [......../obj/build//mconf] Error 2

看起来,是找不到curses库,我已经安装了build-essential, libncurses5, libncurses5-dev,请问有什么方法可以让代码找到curses库,成功编译?

...全文
198 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
happygyt 2013-11-18
  • 打赏
  • 举报
回复
内核编译时对ncurses库 在scripts/kconfig/Makefile中HOST_LOADLIBES进行链接 而对ncurses库文件是在scripts/kconfig/lxdialog/check-lxdialog.sh中进行查找 检查下这个脚本中的ldflags() 看他搜索的库文件在库目录中有没,是不是没有建立链接,例如libncurses.so -> /lib/libncurses.so.5
max_min_ 2013-11-16
  • 打赏
  • 举报
回复
已经安装了的话,-l库名 引导下!
zhxianbin 2013-11-16
  • 打赏
  • 举报
回复
-L<库文件路径> -l<库文件>
Carl_CCC 2013-11-16
  • 打赏
  • 举报
回复
你在编译什么程序啊,你可以重新./configure配置下看看。

4,468

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧