編譯源碼提示錯誤:
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in tcpserver.o
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
網上有人說是因為:新的Linux版本将全局變量改成了局部變量
解決方法:
在所編譯的源碼的目錄中,找到errno.h檔案,使用vim編輯器打開此檔案。修改内容:
将
