首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Raspberry Pi/Raspbian错误?

Raspberry Pi/Raspbian错误?
EN

Stack Overflow用户
提问于 2012-11-12 03:52:45
回答 1查看 781关注 0票数 2

当我尝试运行clang作为我的C编译器时,我得到了一个错误(我认为是链接器错误)

代码语言:javascript
复制
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 hard float ABI (2012-10-28)。

EN

回答 1

Stack Overflow用户

发布于 2012-11-12 06:24:16

正如您基本上已经了解到的,安装的clang是无法使用的。如果您是通过包管理器安装的,请向分发包的人抱怨,因为他们显然没有费心去测试它。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13334813

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档