I'm doing some experimentation with Clang and LLVM. I can JIT pretty much any C++ code, except code that uses any standard streams library. If I try to compile such code, I get the error
LLVM ERROR: Program used external function '_tls_index' which could not be resolved!
Thing is, I can't seem to find any information on what this symbol is or where it's defined. It doesn't seem to be defined in any of the DLLs in my System32.
Any idea how I can fix this error?