Mex-setup Command error using the MEX problem "MATLAB install Mingw-w64 Compiler"

Source: Internet
Author: User

Congratulations into the pit.

Resolve Mex-setup Command error using MEX problem

Reference

https://cn.mathworks.com/matlabcentral/answers/313298- I-already-have-mingw-on-my-computer-how-do-i-configure-it-to-work-with-matlab

First download the MINGW-W64 compiler

Download Address

Http://tdm-gcc.tdragon.net/download

One, fool installation can

creat, then keep next,

Note: 32-bit or 64-bit download needs to correspond, second, create time is recommended to check for updated files a uncheck, this is the official website advice, because the subsequent may be related to the version error.




C:\TDM-GCC-6




Second, add the system environment variables as shown

Add variable name mw_mingw64_loc, variable value is tdm-gcc-64 installation path;



third, open matlab

Enter the command, the name of the variable and the installation path, then enter Mex-setup

Setenv (' Mw_mingw64_loc ', ' C:\TDM-GCC-64 ')

Mex-setup


The result is as shown in the figure


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.