mingw windows 10 install

I'm trying to install MinGW c compiler on Windows 10 with 2015b. The process fails when I am asked where the C compiler is ... I don't know, and I can't find it. Matlab just installed it, why doesn't Matlab know? The install fails at that point, but the add-on manager tells me it is installed.
Then I find the MinGW MSI file and go through the install, where I finally see the "setup" menu where I'm supposed to uncheck the "check for updates" box. It happily installs where I tell it to, but now ... HOW DO I TELL MATLAB WHERE IT IS? "mex -setup" tells me there are no compilers and shows me the link to install MinGW that has already failed.

댓글 수: 4

Rajan Chauhan
Rajan Chauhan 2015년 11월 11일
편집: Rajan Chauhan 2015년 11월 11일
set up environment variable. Google how to setup environment variables and provide path of bin directory of mingw in path variable, if path variable is not present then create the variable called PATH
John
John 2015년 11월 12일
Thanks, but that's not it. The MinGW bin directory was already in PATH.
Sriram
Sriram 2015년 11월 17일
Jhon, you have to (1)uninstall the Support Package form the addOns-manager. after that (2)install the MINGW-Support-package again, but, now UNCHECK the -"check for updates" box. This will install the right version of the compiler. MATLAB will setup the environment for you, with the right version of the compiler.
sac.misc
sac.misc 2016년 4월 2일
This answer worked for me. I installed the compiler through the vendor's installer and Matlab wouldn't recognize that MinGW was installed. I uninstalled the compiler, then installed the compiler through Matlab > Add-on Manager > Get Add-ons and now Matlab recognized the compiler is installed.

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

답변 (0개)

질문:

2015년 11월 11일

댓글:

2016년 4월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by