Can't build a VST3 plugin that hosts VST3 plugins since

I’m guessing since this commit:

since the addition of the headless audio processors has gone wrong and the VST3 sources are now being included twice as I get hundreds of duplicate symbol errors.

If I disable JUCE_PLUGINHOST_VST3 everything builds correctly.

If I dig a bit deeper the sources are included via juce_audio_processors_headless/format_types/juce_VST3Headers.h
and that gets included via:
juce_audio_processors_headless/format_types/juce_VST3PluginFormatImpl.h
and
juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp
(and possibly also via juce_VST3PluginFormat_test.cpp).

I don’t think the pragma once helps here as these are two separate translation units.

I think to replicate this just build a VST3 plugin with JUCE_PLUGINHOST_VST3=1

2 Likes

Thanks for reporting, that’s fixed here:

1 Like

Thanks! Seems to be working now.