"Bruno Luong" <email@example.com> wrote in message <firstname.lastname@example.org>... > "Royi Avital" wrote in message <email@example.com>... > > 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?