阅读:1380回复:2
请教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 |
|
沙发#
发布于:2004-04-30 18:40
大家帮帮忙吧
|
|
板凳#
发布于:2004-05-01 00:15
m68k-elf-gcc -elf2flt -o hello hello.c
gnu工具本身不支持flat格式的二进制文件所以要通过elf2flt转换。 |
|