MATLAB and Simulink Requirements

Supported and Compatible Compilers - Windows

A number of MathWorks products or product features require that you have a third-party compiler installed on your system. The tables below outline the compilers that are supported by various MathWorks products. These compilers are provided by a number of vendors and are available under a variety of commercial, academic, or open source terms; visit the providers' websites for further information.

See the Polyspace documentation for the list of compilers that Polyspace Bug Finder and Polyspace Code Prover support in the current release. See Supported Interfaces to Other Languages for information about using MATLAB with other programming languages.

Other Platforms: Mac | Linux

MinGW is a supported C/C++ compiler which is available free of charge.

Note:

  • Intel oneAPI 2022 support will be discontinued with R2025a.

MATLAB Product Family

Compiler MATLAB MATLAB Coder GPU Coder
SimBiology Fixed-Point Designer HDL Coder HDL Verifier Audio Toolbox ROS Toolbox
For MEX-file compilation, loadlibrary, C++ interface, and external usage of MATLAB Engine and MAT-file APIs For all features For all features

For accelerated computation For accelerated computation  For accelerated testbench simulation  For DPI and TLM component generation For validating and generating audio plugins For custom messages and code generation

MinGW 8.1 C/C++ (Distributor: mingw-w64)

Available at no charge. Additional download and setup required. Direct download for MinGW 8.1. Setup instructions on MATLAB Answers.

   1              

MinGW 6.3 C/C++ (Distributor: mingw-w64)

Available at no charge. Download from MATLAB Central.

   1              
Microsoft Visual C++ 20222                  
Microsoft Visual C++ 20192 3                  
Microsoft Visual C++ 20172 3    

           
Intel oneAPI 2024 for C/C++4                  
Intel oneAPI 2023 for C/C++4                  
Intel oneAPI 2022 for C/C++4                  
Intel oneAPI 2024 for Fortran4                  
Intel oneAPI 2023 for Fortran4                  
Intel oneAPI 2022 for Fortran4                  

Simulink Product Family

Compiler Simulink Simulink Stateflow Simulink Compiler Simulink Coder Embedded Coder SerDes Toolbox
For S-Function compilation For Model Referencing, Accelerator mode, Rapid Accelerator mode, and MATLAB Function blocks For all features For all features For all features When targeting the host OS For IBIS-AMI model generation

MinGW 8.1 C/C++ (Distributor: mingw-w64)

Available at no charge. Download from MATLAB Central.

1

MinGW 6.3 C/C++ (Distributor: mingw-w64

Available at no charge. Additional download and setup required. Setup instructions on MATLAB Answers.

1
Microsoft Visual C++ 20222
Microsoft Visual C++ 20192 3
Microsoft Visual C++ 20172 3
Intel oneAPI 2024 for C/C++4 5            
Intel oneAPI 2023 for C/C++4 5 5   5 5 5  
Intel oneAPI 2022 for C/C++4 5 5   5 5 5  
Intel oneAPI 2024 for Fortran4 5            
Intel oneAPI 2023 for Fortran4 5            
Intel oneAPI 2022 for Fortran4 5            

Polyspace Product Family

Compiler Polyspace Test
For all features

MinGW 8.1 C/C++ (Distributor: mingw-w64)

Available at no charge. Additional download and setup required. Direct download for MinGW 8.1. Setup instructions on MATLAB Answers.

 1

MinGW 6.3 C/C++ (Distributor: mingw-w64)

Available at no charge. Download from MATLAB Central.

 1
Microsoft Visual C++ 20222  
Microsoft Visual C++ 20192 3  
Microsoft Visual C++ 20172 3  

MATLAB Compiler

Compiler MATLAB Compiler MATLAB Compiler SDK
Excel add-in for desktop C/C++ COM .NET Excel add-in for MPS

MinGW 8.1 C/C++ (Distributor: mingw-w64)

Available at no charge. Download from MATLAB Central.

 7
   7
   

MinGW 6.3 C/C++ (Distributor: mingw-w64

Available at no charge. Additional download and setup required. Setup instructions on MATLAB Answers.

 7
   7
   
Microsoft Visual C++ 20222          
Microsoft Visual C++ 20192 3          
Microsoft Visual C++ 20172 3          
.NET Framework 4.6.2 or higher          
.NET 6.0 or higher          

The following products include lcc-win64 when installed: Simulink, MATLAB Coder, SimBiology, Fixed-Point Designer, HDL Coder, HDL Verifier, Stateflow, Simulink Coder, and Embedded Coder. This compiler is no longer supported and will be removed in a future release of MATLAB and Simulink. MathWorks recommends you install one of the other compilers listed on this page when using these products.

Notes for the Windows Platform

  1. MinGW does not support Code Profiling with C++ MEX target.
  2. Microsoft Visual C++ is included with Visual Studio Build Tools, Community, Professional, and Enterprise. The Visual Studio installers group functionality into workloads; the "Desktop development with C++" workload is required for MEX and associated functionality.
  3. See Visual Studio Older Downloads to download Visual Studio 2017 and 2019. 
  4. Intel compilers require that Microsoft Visual Studio also be installed on your system. The Intel compiler version must be equal to or newer than the Microsoft Visual Studio version.
  5. Fortran compilers are supported with Simulink only for creating Simulink S-Functions using the MATLAB MEX command. The S-Functions can be used with normal and accelerated simulations.
  6. MATLAB Function Blocks are not supported with Intel oneAPI.
  7. Microsoft Windows SDK 10 or Windows SDK 11 is required to use MinGW with this product. See Answer 355476 for more details.