Intel MKL stops AAX compiling... sometimes

dsp_module

#1

Hi all,

I’m having a problem compiling an AAX plugin with Intel MKL enabled in the JUCE DSP module on Windows 10 Visual Studio 2017. If it is not enabled I have no problems compiling a plugin that seems to work. If MKL is enabled then I get a bunch of errors like this:
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in include_juce_audio_plugin_client_AAX.obj

The weird thing is that if I (1) clean the VS2017 solution, (2) build with MKL disabled and then (3) build it with MKL enabled, it compiles without any errors!

Anyone else had this problem or know how I can avoid it? It’s very annoying to have to compile twice for each plugin using MKL.

Thanks for your help!