since some time I experience that juce_PluginUtilities.cpp does not properly compile with mingw32. The problem is that windows.h is not included due to missing defines. The proper order of the includes is:
#include "AppConfig.h" #include "../utility/juce_CheckSettingMacros.h" #include "juce_IncludeModuleHeaders.h" #if _MSC_VER || JUCE_MINGW #include <windows.h> #endif
I assume that JUCE_MINGW is set somewhere in one of the other headers but I could not trace it exactly. Anyway, in the above order it works for me.