MAT-File API using C++ and Qt

时间:2016-04-04 17:41:31

标签: c++ matlab qt mex

I have problem running "Read MAT-File in C/C++" from MATLAB examples. https://www.mathworks.com/help/matlab/matlab_external/creating-a-mat-file-in-c.html

  • When I compile it from the MATLAB command window using MEX, everything is fine and the MATLAB MAT file is created.
  • When I use the same MSVC compiler parameters in command line, everything works fine.
  • When I create a simple console application in VS2015 and setup the project to use the MATLAB MAT-File API (includes, libs, etc.), everything works,

However, when I try to setup my QT application project to use the MATLAB MAT-File API, it builds, but running the app gives me this error:

error

I'm using MATLAB 2016a and Visual Studio 2015 Community with Qt5.6 plugin on Win10 64-bit. Does anyone know what is wrong?

0 个答案:

没有答案