开发者

C error TLS error

My Error

/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss
mismatches non-TLS reference in ./../开发者_Go百科lib/lib.a(file_op.o)
/lib/libc.so.6: could not read symbols: Bad value


This page says:

What you need to do is this: open the appropriate makefile (i.e. in TKIGES), find the line DEFAULT_INCLUDES, and add -include /usr/include/errno.h to the end.

Your question is very vague, but perhaps that applies to your case.


Replace extern int errno; as #include <errno.h>.

Please see note in this page:

It was common in traditional C to declare errno manually (i.e., extern int errno) instead of including . Do not do this. It will not work with modern versions of the C library. However, on (very) old UNIX systems, there may be no and the declaration is needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜