Thanks, this is very helpful!
Sorry to keep bugging you, but as a follow-up question, I have tried compiling with mkoctfile after commneting out the header information. Now, Octave is saying that 'mwSize' is an unknown type name:
mexADIconf.c:44:14: error: unknown type name 'mwSize'
mwSize nz, mwSize nr, mwSize nper, mwSize *nt, double *dt,
My understanding is that mwSize is a type name defining the size of arrays. Is there something I have to add to get Octave to recognize this, or should I call it something else?
Thanks again!
-Colin