举个例子:
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.
Run Code Online (Sandbox Code Playgroud)
在尝试修复错误消息后,在途中的某个地方猜测:
/usr/bin/ld: 找不到 crt1.o: 没有那个文件或目录
我已经完全把事情搞砸了。任何人都可以请指教吗?