Menu

#7 Compilation error TLS Definition

open
nobody
None
5
2015-12-09
2015-12-09
mrbass21
No

When compiling on my 14.04 LTS Ubuntu machine I got a compilation error:
"/usr/bin/ld: errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in conf_file.o"

Changing the "extern int errno;" to "#include <errno.h>" allowed the program to compile without issue.</errno.h>

Discussion


Log in to post a comment.

MongoDB Logo MongoDB