锵错误 - stddef找不到文件? [英] Clang Error - stddef file not found?

查看:2214
本文介绍了锵错误 - stddef找不到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Ubuntu 13.10莽撞之后,现在锵给我的错误信息:

After upgrading to Ubuntu 13.10 "Saucy", Clang now gives me the error message:

clang -Wall -Werror -std=c99 -ggdb -O0 5.1.c -o 5.1
In file included from 5.1.c:1:
/usr/include/stdio.h:33:11: fatal error: 'stddef.h' file not found
# include <stddef.h>
          ^
1 error generated.
make: *** [5.1] Error 1

BTW我包括标题是 stdio.h中不是 STDDEF.H ,但我假设 stdio.h中引用或#包括 STDDEF.H

BTW the header I included was stdio.h not stddef.h but I am assuming that stdio.h references or #includes stddef.h

推荐答案

这是在Ubuntu一个知道是不是BUG。看看这里:<一href=\"https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300\">https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300

It's a know bug in ubuntu. Take a look here: https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300

看来,暂时的解决办法是纠正符号链接:

It appears that a temporary workaround is to correct the symlink:

有关3.5 LLVM工具链似乎符号链接
  /usr/lib/clang/3.5/include错误地指向
  ../../llvm-3.4/lib/clang/3.5/include,而应该指向
  ../../ LLVM-3.5 / lib目录/铛/ 3.5 /包括

For the 3.5 LLVM toolchain it seems that the symlink /usr/lib/clang/3.5/include erroneously points to ../../llvm-3.4/lib/clang/3.5/include, but should instead point to ../../llvm-3.5/lib/clang/3.5/include

(当然)的解决方法是手动更正符号链接。

The workaround (of course) is to manually correct the symlink.

有关3.4工具链的/usr/lib/clang/3.4/include根本不存在
  所有。我没有在Ubuntu尝试LLVM 3.4,所以我不知道是否createing
  一个符号链接../../llvm-3.4/lib/clang/3.4/include将修复
  的问题,但它似乎有可能。

For the 3.4 toolchain the /usr/lib/clang/3.4/include doesn't exist at all. I have not tried LLVM 3.4 on Ubuntu so I don't know if createing a symlink to ../../llvm-3.4/lib/clang/3.4/include will fix the problem, but it does seem likely.

<一个href=\"https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300/comments/9\">Source

这篇关于锵错误 - stddef找不到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆