当我尝试将 clang 作为我的 C 编译器运行时,出现错误(我认为是链接器错误)
Compilation started at Sun Nov 11 14:34:55
make -k
clang -std=c99 -ggdb -o0 -Wall -Werror helloworld.c -o helloworld
clang: warning: unknown platform, assuming -mfloat-abi=soft
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [helloworld] Error 1
Compilation exited abnormally with code 2 at Sun Nov 11 14:34:56
我实际上重新安装了 Raspbian 图像,以为问题会消失,但它仍然存在。Raspbian 版本是最新的 Raspbian Wheezy 硬浮点 ABI (2012-10-28)。