JUCE and C++11


I can make an empty GUI project using the introducer, then compile and run it in XCode just fine. However, if I add the following compiler flags in the “Extra compiler flags” field of the introjucer . . .

I get a couple of linker errors of the form …

Undefined symbols for architecture i386: "std::bad_alloc::bad_alloc()", referenced from: juce::HeapBlockHelper::ThrowOnFail<true>::check(void*) in juce_audio_basics.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

PS - I just updated the introjucer today for the first time in ages and it looks rather slick now :slight_smile:


Compiles ok for me… There’s a setting in the introjucer for selecting libc++ - try using that instead of the raw command-line params.


That does the trick. I wonder what is overriding the raw command line params?