作者Astone (阿宽仔)
看板EE_DSnP
标题[问题] 关於HW1.1P4
时间Mon Oct 11 11:43:19 2010
请问为什麽我输入make之後会出现
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function
`_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [run] Error 1
是我自己最後连结函式库的指令有错吗 -lz与後面路径的指令我都有输入
(我不知道可不可以直接将完整的code列出来@@)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.245.184
1F:推 ric2k1:-o 後面要接的是输出档名 10/11 20:31
2F:→ ric2k1:请确定你有将所有 .o 档放进来一起 compile 10/11 20:32
3F:→ Astone:已解决 谢谢教授! 10/11 21:43