No.53624 作者:greenfishao 邮件:sbqmail@hit.edu.cn ID:20753 登陆:2次 文章数:5篇 最后登陆IP:61.167.60.228 最后登陆:2004/5/27 10:14:22 注册:2004/4/28 18:13:11 财富:72 发帖时间:2004/4/28 18:16:17 发贴者IP:61.167.60.228 标题:greenfishao:请教m68k-elf-gcc编译问题 摘要:No.53624请教m68k-elf-gcc编译问题 请教下面的程序编译的时候为什么出错呢? [root@sbq root]#vi hello.c #include <stdio.h> int main(void) { printf("Hello World.\n"); } [root@sbq root]# /usr/local/bin/m68k-elf-gcc -o hello hello.c /usr/local/m68k-elf/lib/crt0.o: In function `_start': /usr/local/m68k-elf/lib/crt0.o(.text+0x8): undefined reference to `__uClibc_main' /tmp/cc3XqhMz.o: In function `main': /tmp/cc3XqhMz.o(.text+0x12): undefined reference to `printf' collect2: ld returned 1 exit status ......
>>返回讨论的主题
|