Juce::String global operators __declspec


#1

I had a small problem with the String class when linking dynamically (dll) to the juce library. The global operators for the String class lack the __declspec declaration (JUCE_API) and the linker cannot link to the body of the functions. I corrected it and it linked correctly.

This happens on the current release version (1.51). I checked the git tree and I see the same problem.


#2

Thanks, yes, I think those statics should be declared with JUCE_PUBLIC_FUNCTION rather than JUCE_CALLTYPE. Sorry, I never use the dll version myself, so it might occasionally get out-of-step like that.