Nominate our 2022 Qt Champions!

Using Qt console application with MathKernelLib

  • Hi,
    I have been writing Qt console application since a while and now I want to integrate some functionalities within this project. The method I want to add is based on some of Math Kernel Library. I am using Visual Studio 2019. Both projects work as separate code. While copying the method into Qt console app code I get KernelBase.dll related error: "Exception thrown at 0x00007FFCFCA8A839 (KernelBase.dll) in Qt_consoleapp.exe: 0xC06D007E: Module not found (parameters: 0x000000E264735100).". It appears while launching mkl_malloc - an equivalent of malloc windows built-in function.
    Has someone experienced similar problems with using both tools together? Thanks in advance for each of the comments!

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Where do you have MKL installed ?

  • Hi,
    I have it installed on AMD cpu and in not default directory. Is something wrong with that? Maybe you mean something else, then please be more precise :)

  • Lifetime Qt Champion

    AMD or Intel doesn't play a role, they both provide x86/x86_64 architectures.

    Since you are on Windows, your application has to first find the dlls matching the libraries you linked to. Therefore, you have two choices:

    1. copy the MKL dlls in the same folder as your executable or
    2. modify the PATH environment variable so it also contains the path to the folder containing the dlls.

    For number 2, go to the Run part of the Project panel and modify there the variable. Do not do it system wide.

Log in to reply