因為要開發c
下 gcc test.c
出現 error: stdio.h: No such file or directory
是缺少了Development Libraries and Header Files
libc6-dev - GNU C Library: Development Libraries and Header Files
apt-get install libc6-dev
vim test.c
---
#include
int main(void){
printf("Hello, World !! Peicheng !!\n");
}
-----
gcc test.c
-----
./a.out
root@pc-desktop:~# gcc test.c
root@pc-desktop:~# ./a.out
Hello, World !! Peicheng !!
root@pc-desktop:~#
開始開發c吧
沒有留言:
張貼留言