필터 지우기
필터 지우기

Problem configuring mex to use visual studio as its default compiler

조회 수: 1 (최근 30일)
Imran Mumtaz
Imran Mumtaz 2020년 8월 24일
댓글: Imran Mumtaz 2020년 8월 24일
I am using MATLAB R2018a and configuring mex to use visual studio 2017 as its default compiler but each time I type "mex -setup -v" I get error: no supported compiler was found. I have tried "mex -setup CPP -v" but no difference.Can someone help?
  댓글 수: 3
Ingrid van Peufflik
Ingrid van Peufflik 2020년 8월 24일
According to the help I use it set to to it this way:
mex -setup:'C:\Program Files\MATLAB\R2020a\bin\win64\mexopts\msvc2017.xml' C
If you type : mex -setup in your command window, all found compilers are shown including the command to set those as default compiler.
Imran Mumtaz
Imran Mumtaz 2020년 8월 24일
It is giving the following error:MEX cannot use compiler 'Microsoft Visual C++ 2017 (C)' because that compiler is not
found.
Though visual studio is already installed.Why it is not found?But visual studio is installed in C/programfiles and matlab is installed in D:/ drive.Isn't it like that it is in the D drive that's why visual studio not found error coming?

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by