Thread Error during compilation


#1

Hi,

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?

Thanks


#2

Well what OS and compiler are you using?


#3

Of course.

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


#4

I have a feeling I missing something fundamental!


#5

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.


#6

Ok thanks, I will dig a bit deeper.