Mex file debugging with Multiple C files on 2006b with VC++ 6.0

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 Commento

Have you compiled both files with the mex -g option (with debugging symbols)?

Accedi per commentare.

Risposte (0)

Categorie

Richiesto:

il 6 Dic 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by