compiler 'Microsoft Visual C++ 2013 Professional (C)'

조회 수: 7 (최근 30일)
Chida Matada
Chida Matada 2015년 6월 26일
답변: Harsh 2017년 2월 28일
I have seen this question being asked a lot of times.
Trouble setting up the compiler 'Microsoft Visual C++ 2013 Professional (C)'. I have found where the problem is. I need a command to actually change the location where Matlab looks for the 'Microsoft Visual C++ 2013 Professional (C)'.
what mex -setup -v had to say about 'Microsoft Visual C++ 2013 Professional (C)'.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 12.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 12.0\'). ... Looking for file 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe' ...No.
The issue is the location of cl.exe is in the following location.
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\cl.exe
Can anyone suggest a way I could change the location where matlab looks for this??
Thanks in advance.
Chida Matada
  댓글 수: 1
Nicolau Werneck
Nicolau Werneck 2016년 3월 17일
Got the exact same problem, no solution in sight... What a joke.

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

답변 (3개)

Adam Hug
Adam Hug 2015년 6월 29일
You could try making the directory C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ and copy and paste the contents of the other directory into the folder. It's not the most elegant solution but it is fairly unobtrusive and doesn't involve messing with the internals of MATLAB.

Chida Matada
Chida Matada 2015년 6월 30일
Hey Adam, That was one of the first things I tried, with little success. It was missing a bunch more of the paths.
Chida Matada

Harsh
Harsh 2017년 2월 28일
Hi,
You may find the following post helpful:

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by