Solved: LLVM Clang and WindowsMediaAudioFormat compile error

I get following errors when i try to compile a plugin with LLVM Clang that uses juce::WindowsMediaAudioFormat (JUCE 6 develop branch).

Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand
Fehler undefined symbol: public: __cdecl juce::WindowsMediaAudioFormat::WindowsMediaAudioFormat(void) AudioPlugin_AAX C:\Daten\Code\talgit\tal-sampler\cmake-build\lld-link 1
Fehler undefined symbol: public: __cdecl juce::WindowsMediaAudioFormat::WindowsMediaAudioFormat(void) AudioPlugin_VST C:\Daten\Code\talgit\tal-sampler\cmake-build\lld-link 1
Fehler undefined symbol: public: __cdecl juce::WindowsMediaAudioFormat::WindowsMediaAudioFormat(void) AudioPlugin_VST3 C:\Daten\Code\talgit\tal-sampler\cmake-build\lld-link 1

It looks to me like it uses a feature LLVM Clang does not support. Any help is welcome.

I call it like this:

audioFormat = new WindowsMediaAudioFormat();

Thanks, it looks like the implementation for the WindowsMediaAudioFormat was only being enabled if the compiler was MSVC. The fix will be on develop shortly.

1 Like

Thanks for the fast fix. All seems to work now.