• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : make menuconfig 出错,求助~~ 谢谢 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
10楼  发表于: 2010-03-08 15:58
写一个C档“temp.c”,内容是
复制代码
  1. #include CURSES_LOC
  2. main() {}

然后用
gcc -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -DLOCALE -DKBUILD_NO_NLS -lncursesw -o temp temp.c
编译,看看会出现什么信息
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 8129
精华: 0
发帖: 78
金钱: 490 两
威望: 213 点
综合积分: 156 分
注册时间: 2009-08-11
最后登录: 2017-09-13
11楼  发表于: 2010-03-08 16:54

 回 10楼(kasim) 的帖子

出现了  collect2: cannot find "ld"  这个提示信息。。。。
后来我又到 /usr/bin 文件夹去看 ld 文件,,结果发现 ld 不知怎么变成了一个无效的链接了。。。
现在我重新复制了一个ld 文件进去,, 问题解决了~~~
非常感谢版主~~~ 谢谢   
mini2440 now.
级别: 新手上路
UID: 72159
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2012-06-16
最后登录: 2012-06-18
12楼  发表于: 2012-06-16 20:26
我也碰到了类似的错误:
gcc -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -DLOCALE -DKBUILD_NO_NLS -lncursesw -o temp temp.c
/usr/bin/ld: cannot find -lncursesw
collect2: ld returned 1 exit status

最后找到了这个。
http://www.linuxquestions.org/questions/slackware-14/menuconfig-cant-find-ncurses-184469/

于是ok了.
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go