Info

This question is closed. Reopen it to edit or answer.

Why do I get Link failing error when I use the MEX command in MATLAB R2012b?

1 view (last 30 days)
Hi, I'm trying to link fortran with matlab using the compiler: Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker).The command
mex -setup
locates the compiler and allows me to successfully select this compiler. However, when I execute an example such as:
mex yprimef.f
I receive the following error:
E:\MATLAB~1\R2012B\BIN\MEX.PL: Error: Link of 'yprimef.mexw64' failed.
Error using mex (line 206)
Unable to complete successfully.
I also installed Microsoft Software Development Kit (SDK) 7.1 and Microsoft Visual C++ 2008 SP1 on my computer. Could you please help me?!
  1 Comment
Geoff Hayes
Geoff Hayes on 20 Nov 2014
Navid - re-run the command with verbosity enabled as
mex -v yprimef.f
so that the error might be more obvious. Please paste the results (or at least the portion that hints at the error) back here.

Answers (0)

Community Treasure Hunt

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

Start Hunting!