0

I am trying to use protobuf 3.0.0 in my objective-c project, when I compile the protobuf project, there shows an error :

"thread-local storage is unsupported for the current target."

because protobuf uses "__thread" in the code, maybe the xcode compiler do not support this character.

could someone tell me how to solve this problem?

Daniel Fath
  • 16,453
  • 7
  • 47
  • 82
ylongwu
  • 31
  • 1
  • 4

1 Answers1

0

the protobuf source code is compiled as c++ in xcode,

here is my settings:

Apple LLVM 6.0 - Language:
C Language Dialect    GNU99 [-std=gnu99]
Compile Source As     According To File Type


Apple LLVM 6.0 Language - C++:
C++ Language Dialect   GNU++[-std=gnu++11]
C++ standard Library   libc++(LLVM C++ standard library with c++11 support)

here is the setting link: xcode setting snap

ylongwu
  • 31
  • 1
  • 4