作者fu3mo6 (ㄚ庞)
看板EE_DSnP
标题[问题] hw5 不理解的 compile error
时间Sat Dec 4 17:51:37 2010
板上好多人写好快好可怕...
我在make d的时候,发生了这样的error:
/usr/bin/ld: skipping imcompatible ../..lib/libcmd.a when searching for -lcmd
/usr/bin/ld: cannot find -lcmd
collect2: ld return 1 exit status
要怎麽解决啊?
make clean之後再make也没用...
-------------------------------------------解决了= =我忘了make 32....
问了蠢问题>"<
另外
我写了一个小main去include dlist.h想测试
但compile过了,执行却没有任何东西cout出来
进入gdb发现
它一进去main之後就跳到一个什麽...
65 ../sysdeps/i386/elf/start.S: 没有此一档案或目录
接下来一直n..n..n..n..之後
Single steppint until exit from function __libc_start_main@plt
which has no line number information
Cannot find bounds of current function
continue之後
program exited normally
最好是normally啦!(翻桌
噢不又是HW4遇到的那个gdb问题?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.227.98.237
※ 编辑: fu3mo6 来自: 125.227.98.237 (12/04 17:57)
※ 编辑: fu3mo6 来自: 125.227.98.237 (12/04 17:59)
1F:→ ckmarkoh:那就用cout大法吧(逃).. 12/04 18:35
2F:推 Knossos:我的gdb也是跟HW4一样不能用ˊˋ 只能cout了...囧 12/04 20:33
3F:推 ric2k1:你有开 -g 吗? 要不要先从简单的开始测,比方说 construct 12/04 21:28
4F:→ ric2k1:一个 array 就好? 12/04 21:28