|
发表于 2017-4-19 17:26:41
只看该作者
6#
AAAA@AAAA-Linux:~/AM335Linux/helloword$ cat hello.c
//#include <stdio.h>
int main(void)
{
printf("hello world");
return 0;
}
AAAA@AAAA-Linux:~/AM335Linux/helloword$ arm-eabi-gcc -o helloworld hello.c
hello.c: In function 'main':
hello.c:5:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
/home/AAAA/3128/RK3128/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/../../../../arm-eabi/bin/ld: cannot find crt0.o: No such file or directory
/home/AAAA/3128/RK3128/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/../../../../arm-eabi/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
AAAA@AAAA-Linux:~/AM335Linux/helloword$ |
|