最近電腦重新裝了系統 WIN7 64位,因此也重裝了MATLAB 2016a
在編譯c文件的時候,一直提示錯誤使用mex, 未找到支持的編譯器或SDK。按照提示利用Add on功能安裝MinGW64 Compiler (C++)編譯器,但是 Add on不能用
這就尷尬了,自己動手安裝,
百度下載一個TDM-GCC-4.9.2
https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/Previous/1.1309.0/tdm64-gcc-4.9.2.exe/download
按照MATLAB裏面的指南,一步步安裝;
http://cn.mathworks.com/help/matlab/matlab_external/compiling-c-mex-files-with-mingw.html
然後設置好環境變量
C:\TDM-GCC-64還是不行,長沙鐵路段曹輝,####徹底瘋了
按照MATLAB裏面的手動指示:http://cn.mathworks.com/help/matlab/matlab_external/compiling-c-mex-files-with-mingw.html
大功告成!!!
希望對遇到同樣問題的同學有所啓發