2010-03-31 33 views
-1

我的錯誤C的誤差TLS錯誤

/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss 
mismatches non-TLS reference in ./../lib/lib.a(file_op.o) 
/lib/libc.so.6: could not read symbols: Bad value 
+0

請稍等一下上下文嗎? – 2010-03-31 11:48:27

回答

0

This page說:

你需要做的是這樣的:打開 適當的make文件(在TKIGES IE), 找到行DEFAULT_INCLUDES,和 加-include /usr/include/errno.h到 結束。

你的問題非常模糊,但也許這適用於你的情況。

0

extern int errno;替換爲#include <errno.h>

請見注在this page

它是在傳統的C共同手動聲明錯誤號(即, 的extern INT錯誤號),而不是包括。不要這樣做。 它不適用於現代版本的C庫。但是,在 (非常)舊的UNIX系統上,可能不存在,並且需要聲明 。