Why can't Matlab find GCC?

조회 수: 3 (최근 30일)
mnbv0909
mnbv0909 2016년 5월 2일
댓글: Walter Roberson 2016년 5월 2일
Windows 7 64-bit, 64-bit matlab, 64-bit gcc is installed, gcc is listed as compatible on the linked page:
>> which gcc
'gcc' not found.
>> which gcc.exe
C:\Programs\mingw-w64\x86_64-5.3.0-posix-seh-rt_v4-rev0\mingw64\bin\gcc.exe
>> !gcc --version
gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> mex -setup
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2011a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2011a/win64.html
??? Error using ==> mex at 208
Unable to complete successfully.
Please advise. I have no ideas here.

채택된 답변

Walter Roberson
Walter Roberson 2016년 5월 2일
gcc and mingw are not listed for R2011a. You are possibly looking at the R2016a documentation.
  댓글 수: 2
mnbv0909
mnbv0909 2016년 5월 2일
That must be it; I guess the URL is forwarded now since R2011a is so old. I'll have to update I guess. Thanks for pointing that out.
Walter Roberson
Walter Roberson 2016년 5월 2일
The URL forwards to the PDF http://www.mathworks.com/support/sysreq/files/SystemRequirements-Release2011a_SupportedCompilers.pdf which lists lcc and various Microsoft VS and Intel compilers, and Open Watcom (which is not gcc or mingw)

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

추가 답변 (0개)

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by