Hi list, I am trying to compile a mex function, I an using 32 bin windows system. I have used pow() and exp() functions, and included <math.h>. However, when i execute mex -lm <filename>.c I get a bunch of errors starting from a line containing the first instance to the call to the math.h function (pow() in this case). I have verified that it is not finding any libm.lib or equivalent. So, my question is 1) what compiler option should I use on windows 2) with is the equivalent libm.lib library on windows? Thanks. Sid.