Thread Error during compilation


I downloaded 2.0 today and made a new plugin project with the Introjucer. On compilation I am getting the following:

…/…/JuceLibraryCode/modules/juce_audio_basics/…/juce_core/threads/juce_ThreadLocalValue.h:145:16: error: thread-local storage is unsupported for the current target [3]

How can I resolve this?


Well what OS and compiler are you using?

Of course.

OSX 10.7.3 and XCode 4.1 ( 4.3 is giving me massive headaches ). LLVM GCC 4.2

I have a feeling I missing something fundamental!

Well, I have no problems compiling with gcc 4.2.

No idea why it’d behave differently for you. You could investigate the JUCE_NO_COMPILER_THREAD_LOCAL flag if you want to dig deeper.

Ok thanks, I will dig a bit deeper.