"Bruno Luong" <firstname.lastname@example.org> wrote in message <email@example.com>... > "Royi Avital" wrote in message <firstname.lastname@example.org>... > > I see. > > I thought so. > > > > My need is really for debugging (Hence I need to replace mexFunction with int main). > > When I try to build a file ('int main') which uses some of the functions of mex.h it won't work. > > > > I couldn't understand why. > > > > Too bad, I wish I could debug files within Visual Studio. > > But why must you change mex file in generic C-code for debugging? > > Bruno
Because the compiler asks for 'int main' to build and debug. Do you know other way?