Matlab选择mingw编译器
来源:互联网 发布:停课铃软件 编辑:程序博客网 时间:2024/05/21 09:29
编译平台为win 7 + Matlab 2016a
1. 在[14]中下载mingw.mlpkginstall文件
2. 拖到Matlab命令框里:
3.
4.
5.
6.
7.
到此,MinGW就安装成功了。
当出现错误时:g++: error: \-fexceptions: No such file or directory
解决方法参考[1]如下:
将CXXFLAGS换成COMPFLAGS
之后发现并不能使用mingw编译成功,可能需要cygwin编译[6],根据[6]进行编译:
产生文件mexopts.bat和文件mexopts.stp,但会出现下面的错误:
根据[8]的解释,在Matlab2014a之后,就不支持.stp和.bat文件了,所以对cygwin编译的探索就到此为止,
参考:
【1】make.m problem in win10 & MinGW64 compiler https://github.com/cjlin1/libsvm/issues/55
【2】linux, win32 代码转换 http://noteonx.blogspot.com/2009/10/linux-win32.html
【3】'uint32_t' does not name a type http://stackoverflow.com/questions/11069108/uint32-t-does-not-name-a-type
【4】Get Add-Ons https://cn.mathworks.com/help/matlab/matlab_env/get-add-ons.html
【5】MATLAB Support for the MinGW-w64 C/C++ Compiler from TDM-GCC https://cn.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-the-mingw-w64-c-c++-compiler-from-tdm-gcc
【6】gnumex - Matlab下调用gcc编译 http://blog.csdn.net/ayw_hehe/article/details/7865358
【7】gnumex https://sourceforge.net/projects/gnumex/?source=directory
【8】https://cn.mathworks.com/matlabcentral/answers/120713-matlab-r2014a-and-visual-studio-professional-2013 https://cn.mathworks.com/matlabcentral/answers/120713-matlab-r2014a-and-visual-studio-professional-2013
【9】在cygwin中安装gcc编译器 http://qichunren.iteye.com/blog/214527
【10】Cygwin https://cygwin.com/install.html
【11】Compiling Mex with GCC on Windows https://cn.mathworks.com/matlabcentral/answers/43550-compiling-mex-with-gcc-on-windows
【12】Supported and Compatible Compilers for R2016a http://cn.mathworks.com/support/compilers/R2016a/index.html?sec=win64
【13】Compiling Matlab mex files with gcc for Windows http://people.csail.mit.edu/brussell/pers/windows/cygwin_compile_mex.htm
【14】MATLAB Support for the MinGW-w64 C/C++ Compiler from TDM-GCC https://cn.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-the-mingw-w64-c-c++-compiler-from-tdm-gcc
- Matlab选择mingw编译器
- MATLAB链接MinGW编译器
- MATLAB链接MinGW编译器
- Matlab安装MinGW-w64编译器
- Matlab安装MinGW-w64编译器
- Matlab安装MinGW-w64编译器
- MinGW编译器
- mingw gcc编译器
- MATLAB2015b链接MinGW编译器
- matlab编译器
- Eclipse下安装MinGW编译器。。
- 安装minGW编译器及其使用方法
- qt-opencv配置mingw编译器
- 为CodeBlocks升级编译器MinGW
- mingW编译器不支持webenginewidgets模块
- 安装minGW编译器及其使用方法
- minGW下载与编译器安装
- 解决Matlab 2012b中无法选择Visual Studio 2012作为编译器的问题
- rhel7 grub配置文件及排错 破解root密码
- Zephys OS nano 内核篇:环形缓冲 Ring Buffer
- LeetCode 167. Two Sum II - Input array is sorted 题解(C++)
- 设计模式--单例模式
- 如何写一封专业的英文电子邮件
- Matlab选择mingw编译器
- POJ 3252 Round Numbers 数位DP .
- spring scheduled-task集群问题
- DIY Windows
- 直方图均衡化程序 matlab
- 使用Javamail发送邮件
- Windows下python的xgboost-0.47安装
- 设计模式——6大设计原则
- 2016/10/07 阅读《Practical OpenCV》 char5