JUCE plugin is not building with Code::Blocks and MinGW 8.1

When I try to build a VST3 Plugin or even the AudioPluginHost project generated by ProJucer (JUCE version 6.1.4) using Code::Blocks with MinGW 8.1 I get the following two errors:

C:\JUCE\modules\juce_core\native\juce_win32_ComSmartPtr.h|32|error: type/value mismatch at argument 1 in template parameter list for ‘template struct juce::UUIDGetter’|

C:\JUCE\modules\juce_audio_plugin_client\utility\juce_CheckSettingMacros.h|29|error: #error “You need to enable at least one plugin format!”|

Any suggestions?

The Code::Blocks (Windows) exporter doesn’t support building VST3 plugins. If you really want to make a VST3 plugin, I would recommend installing Visual Studio Community and using the corresponding exporter in Projucer.