【发布时间】:2016-01-26 07:12:15
【问题描述】:
如this answer 所示,Mac OSX 上的 Xcode 中的 clang 不支持 thread_local 存储,即使设置了 C++11 标志。即使在最新版本上,Apple LLVM 版本 7.0.0 (clang-700.1.76),目标:x86_64-apple-darwin15.0.0,线程模型:posix,不支持thread_local:
../../src/dir/sysArch.h:1505:3: error: thread-local storage is not supported
for the current target
thread_local
^
【问题讨论】:
-
您可以改用开源版本的clang吗?我面临同样的问题。 2016 年底。
标签: c++ xcode c++11 clang thread-local