Problems with mex setup

조회 수: 2 (최근 30일)
Lelia Loures
Lelia Loures 2015년 11월 25일
댓글: Muhammed Ali Erbir 2018년 12월 6일
I use a Matlab 2013a running in a windows 10 64 bits and everytime i try to use mex this following message appears:
>> mex setup
C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: '–setup' not found.
Error using mex (line 206)
Unable to complete successfully.
I`ve seen a lot of people with the same problem and i have already tried all solutions: i have installed Visual Studio C 2012, 2014, 2010 , windows SDK for windows 10 and .NET Framework 4.6 SDK
But nothing seems to work. Can someone help me please?
  댓글 수: 1
Muhammed Ali Erbir
Muhammed Ali Erbir 2018년 12월 6일
SDK is not enough. you have to install visual studio (at least community version)
while installing you have to select "C++ desktop app development" optioncompiler for matlab.PNG

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

답변 (1개)

Walter Roberson
Walter Roberson 2015년 11월 25일
You are typing in the wrong command. You are typing in
mex –setup
but you need
mex -setup
You probably cannot see the difference but it is there. The clue is to look at the error message:
C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: '–setup' not found.
Notice how long the line is before "setup". You are using a m-dash instead of a regular dash.
  댓글 수: 2
James Tursa
James Tursa 2015년 11월 25일
+1 Sharp eyes!
Walter Roberson
Walter Roberson 2015년 11월 25일
Sharp eye. I think I've now hit legally blind in the other eye :(

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

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by