powerpc-linux-gcc交叉编译helloworld出错
#include<stdio.h>intmain(){printf("HelloWorld!\n");return0;}[root@localhosthelloworld...
#include <stdio.h>
int main()
{
printf ("Hello World!\n");
return 0;
}
[root@localhost helloworld]# powerpc-linux-gcc -o ppc hello.c
hello.c:1:20: error: stdio.h: No such file or directory
hello.c: In function 'main':
hello.c:4: warning: incompatible implicit declaration of built-in function 'printf' 展开
int main()
{
printf ("Hello World!\n");
return 0;
}
[root@localhost helloworld]# powerpc-linux-gcc -o ppc hello.c
hello.c:1:20: error: stdio.h: No such file or directory
hello.c: In function 'main':
hello.c:4: warning: incompatible implicit declaration of built-in function 'printf' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询