Mex error that won't fix with reinstall

조회 수: 1 (최근 30일)
Dana
Dana 2014년 10월 28일
편집: Jordan-Theresa Deakin 2023년 3월 5일
I'm having trouble in conjunction with Matlab in conjunction with the DMAT package, which needs a c compiler. I was testing my code, I tried to stop it because I spotted a bug, and then an error occurred and Matlab crashed. When I restarted the program, the code I'd already had working was giving me an error about cdfdif having too many arguments.
I tried restarting the computer, and was still getting the error.
I tried reinstalling DMAT, and it would not reinstall.
I tried uninstalling and reinstalling Matlab, SDK, and DMAT, and DMAT still wouldn't reinstall.
I try a patch on SDK I found linked on this forum about linking error but still DMAT would not reinstall.
I uninstalled and reinstalled Matlab again, this time deleting ever Matlab and mex related file between, and still got the same error.
This is the error I'm getting:
The DMAT installer needs to compile a binary file that is appropriate for your system. If you have never compiled MEX-files before, MATLAB may ask you to identify a C compiler. Most compilers will do, including Lcc C. Using included file cdfdif10.c... Building with 'Microsoft Windows SDK 7.1 (C)'. Error using mex LINK : fatal error LNK1104: cannot open file 'cdfdif10.mexw64'
Anyone know how to fix this? I'd appreciate any advice.
I've reinstalled Matlab 3 times in 24 hours, and I'm now up o 2014b. I'm using Microsoft Windows SDK 7.1 as my c compiler.

답변 (1개)

Levan
Levan 2014년 11월 30일
Hi Dana,
What version of MATLAB were you using initially? One of the websites describing DMAT (<http://www.cidlab.com/dmat.php>) says that the latest version DMAT 5 is for MATLAB versions R2008a through R2012a, and it has not been tested on newer versions.
I am having the same issue with the "Error using mex LINK : fatal error LNK1104: cannot open file 'cdfdif10.mexw64." I looked in the toolbox folder and there is a file cdfdif10.mexw32 , so I though changing the 32 to 64 would help. DMAT got successfully installed but when I run "test_main" to test all the functionality, it gives me an error:
>> test_main
DMAT diagnostics are running. This may take a few minutes.
43%Error using cdfdif Too many output arguments.
Error in test_main (line 171)
diagnostics.cdfdif = cdfdif(-.5:.5:3,0,diagnostics.standardparset(1,:));
So I'm stuck here now. I'm trying to install MATLAB 2012a to see if DMAT works there. If you have found a solution by now please let me know.
  댓글 수: 4
HANAN AL RAHBI
HANAN AL RAHBI 2019년 3월 23일
Same here T.T
Jordan-Theresa Deakin
Jordan-Theresa Deakin 2023년 3월 5일
편집: Jordan-Theresa Deakin 2023년 3월 5일
I am a little late but I was able to get test_main to work by navigating to the dmat toolbox folder and running 'mex cdfdif.c'. After this, test_main ran successfully. However, when not in this folder, it gives the same error. This was using MATLAB R2013a.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by