Intel MKL stops AAX compiling... sometimes

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!

Hi,

I have the exact same problem but I cannot follow your steps. Cleaning the VS Solution is fine, but how can I disable and enable MKL?

Thanks

I was enabling/disabling in the JUCE dsp module option. In the end I think I ended up deleting the VS project and re-exporting from Projucer. I might have recompiled the AAX lib, but I don’t remember doing that specifically. I am using VS2019 now and haven’t had this problem since I posted here.

Thanks.
I had issues on my machine but it worked fine on my friend’s PC. We also used VS2019.
Thanks for the help.