[RESOLVED] PluginHost compile error


#1

Platform: MacOS 10.11.6
Xcode: 8.2.1

Compile error in:

StringArray MainHostWindow::getMenuBarNames()
{
    return { "File", "Plugins", "Options", "Windows" };
}

The error is that there’s no matching constructor in StringArray for the 4 parameters.

Reverting the code from this commit fixes the problem:

https://github.com/WeAreROLI/JUCE/commit/377a73a122800644a1c94cf5c37a0de5cb61c1d6

Must be related to JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS

Cheers,

Rail


#2

Actually, there’s something odd going on… After finding the JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS flag I reverted the code to the commit using Undo and rebuilt and now no longer get the error… and SourceTree shows an uncommitted change… but the line is the same??

Rail


#3

Looks like the plugin host deployment target is set to 10.5 for release builds so JUCE_COMPILER_SUPPORTS_INITIALIZER_LISTS is being set to 0. I’ll sort it out.