Problem in using the "-g" option of mex
Show older comments
I have written a MEX file which is successfully built by:
mex -v mymex.cpp
However, when I want to add the debug information using:
mex -v -g mymex.cpp
I get the following error
mymex.cpp(28) : fatal error C1083: Cannot open include file: 'mkl.h': Invalid argument
Could someone help me why mex cannot find mkl.h when I am using -g while it works perfectly when -g is not used? I need to do this to be able to debug my mex code. All the necessary header and library files are accurately defined in mexopts.bat. I don't know why these options does not work for mex -g and does work when I am not using -g option.
2 Comments
Kaustubha Govind
on 10 Jun 2014
Is mkl.h included only for debug builds via a pre-processor macro like NDEBUG?
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!