Ví dụ:
hsmyers@ubuntu:~/c_dev$ cat hello.c
#include <stdio.h>
int main(int argc,char **argv) {
printf("Hello World!\n");
return 0;
}
hsmyers@ubuntu:~/c_dev$ gcc -c -o hello.o hello.c
In file included from /usr/include/stdio.h:28:0,
from hello.c:1:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
Tại một nơi nào đó trên đường đi sau khi cố gắng sửa thông báo lỗi:
/ usr / bin / ld: không thể tìm thấy crt1.o: Không có tệp hoặc thư mục như vậy
Tôi đã hoàn thành mọi thứ. Ai có thể vui lòng tư vấn?