MATLAB: Do I receive a “cannot open file ‘dformd.lib'” fatal error when trying to use the MEX command with the Compaq Visual Fortran 6.6 compiler

-setupcvfdfdf98dirdirectorydoubleiteiexternalhpinterfacesMATLABmsvcvisyprimeyprimef

I am trying to compile my MEX-file using the Compaq Visual Fortran 6.6 compiler.
When I use the MEX function to compile my MEX-file, I receive the following error:
LINK: fatal error LNK1104: cannot open file "dformd.lib"
??? Error using ==> mex
Unable to complete successfully

Best Answer

This error results from the Compaq Visual Fortran compiler not being installed with the proper file folder arrangement.
The recommended file arrangement for the Compaq Visual Fortran compiler is as follows:
Developer Studio Files: C:\Program Files\Microsoft Visual Studio\Common
Visual Fortran Files: C:\Program Files\Microsoft Visual Studio\Df98
Shared Visual C++ Files: C:\Program Files\Microsoft Visual Studio\VC98
For more information, see Hewlett-Packard's website on Fortran compilers:
www.hp.com/go/fortran
Related Question