Why 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?

2 views (last 30 days)
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

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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

More Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Products


Release

R14SP2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!