I downloaded this package but got a segmentation violation when running the supplied precompiled math.dll. I am using Matlab 2008a and Mathematica 6.0. Then I copied the mathlink.h and the ml32i1m.lib from the Mathematica directory and tried compiling math.c. However, when I run the mathrun.m script on Matlab I get this error:
C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: 'and' not found.
??? Error using ==> mex at 207
Unable to complete successfully.