From: Benjamin on
Hey all,

I'm having trouble compiling the basic mex MATLAB examples (<MATLABFOLDER>\extern\examples\mex) using the mex command and Visual Fortran compiler 11.1.046.

The error message I receive is the following:

>> mex yprimef.F
>> LINK : error LNK2001: unresolved external symbol MEXLIBRARY
>> C:\DOCUME~1\JONEN\LOCALS~1\TEMP\MEX_6D~1\templib.x : fatal error LNK1120: 1 unresolved externals

>> C:\PROGRA~1\MATLAB\R2009B\BIN\MEX.PL: Error: Link of 'yprimef.mexw32' failed.

>> ??? Error using ==> mex at 221
>> Unable to complete successfully.

Can someone help?