4

I've just installed Matlab 2014 and Microsoft Visual Studio Professional 2013. I've already setup mex compiler in my matlab, and tested it with a simple mex-file. But, when I want to debug a project in Visual Studio, and it reaches to debug a mex file, I get the following Error:

Error 1 error C1083: Cannot open include file: 'mex.h': No such file or directory

Can anybody help me to get rid of this error.

Thanks.

Shai
  • 111,146
  • 38
  • 238
  • 371
margol
  • 259
  • 4
  • 12
  • 1
    Have you followed a tutorial on how to correctly debug Matlab files in VS? – m_power Jul 10 '14 at 18:01
  • 3
    This error is not specific to mex files; it means you did not configure the project correctly, so the preprocessor cannot find the header to include. – Itamar Katz Jul 10 '14 at 19:00
  • You need to make sure that you have configured VS properly so that it can debug MATLAB MEX files. See my post here: http://stackoverflow.com/questions/23714141/preventing-a-mex-file-from-crashing-in-matlab/23714301#23714301 – rayryeng Nov 06 '14 at 21:57
  • Thanks Ray! Yes, it was for VS configuration. – margol Nov 07 '14 at 00:29

0 Answers0