From: Henry Tse on
Hello

I am trying to compile a executable file. I am running Matlab 2009a, MSVB 2008 with the 64bit compiler installed. I tried to follow this tutorial: http://www.mathworks.com/support/tech-notes/1600/1621.html , but was unsuccessful.
I also do not have options to select libraries as mentioned in the tutorial when I enter mbuild -setup
However, everytime I run the mbuild command such as:
mbuild auto.m
returns:
auto.m : fatal error LNK1107: invalid or corrupt file: cannot read at 0x1830
C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Link of 'auto.exe' failed.

I don't have much experience coding or compiling. Any help would be greatly appreciated.

Thanks
Henry