This is machine translation

Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Translate This Page

MathWorks Machine Translation

The automated translation of this page is provided by a general purpose third party translator tool.

MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

MinGW-w64 Compiler

You can use the MinGW-w64
compiler to build MEX files and standalone MATLAB® engine and MAT-file applications. To install the compiler, use the Add-Ons
menu described in Get Add-Ons. Search for MinGW or select from
Features. For more information, see the File Exchange
article "MATLAB Support for MinGW-w64 C/C++ Compiler".

Building yprime.c Example

You can test the MinGW® compiler by building the yprime.c example. Copy the
source file to a writable folder.

If you only have the MinGW compiler installed on your system, the mex
command automatically chooses MinGW. Go to the next step. However, if you have multiple C or C++
compilers, use mex -setup to choose MinGW.

mex -setup

Build the MEX file.

mex yprime.c

MATLAB displays a “Building with” message showing what compiler was
used to build the MEX file.