Mex file debugging with Multiple C files on 2006b with VC++ 6.0
2 views (last 30 days)
Show older comments
Hi, I want to debug C mex files in VC++ 6.0.There are two files.One is Sample.c and another one is Sample1.c.
Sample.c is a simple s function with the following in mdlOutputs function static void mdlOutputs(SimStruct *S, int_T tid) { int_T i,a=0; for (i=0; i<5; i++) { a = a++; } Foo(); } The function Foo() is defined in Sample1.c is just an empty function which do nothing.I have created mex files for Sample.c and Sample1.c.When i try to debug Sample.c thru VC++ 6.0,the control will come till the end of for loop but the function Foo() was not get executed.
1 Comment
Kaustubha Govind
on 6 Dec 2011
Have you compiled both files with the mex -g option (with debugging symbols)?
Answers (0)
See Also
Categories
Find more on Call C++ from MATLAB 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!