Juce 5.1.2: juce_String.h does not compile with JUCE_DLL_BUILD=1


#1

VS 2015 gives a compiler error C2239 in juce_String.h when JUCE_DLL_BUILD=1 and hence JUCE_API=__declspec(dllexport)

The error message complains that a __declspec(dllexport) function can’t be deleted. This occurs with the << operator (String& bool).

As a temporary workaround, I just commented this line out, but obviously a better solution is needed.


#2

Thanks for reporting, this should be fixed on develop with commit 0b6f02a.


#3

Great. Thanks for the fix.