The variable value must be the path pointing to the bin directory of the downloaded and unzipped "x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z" where the gcc.exe is located which is the correct GCC Compiler for Veristand for the compilation of Models for the Windows OS.Add a new System Variable with the Variable Name NI_MINGW_WIN32.I am running Matlab 2018b on a standalone computer. I have downloaded mingw-w64-v6.0.0.zip from sourceforge, but it did not contain an installer.
To install the MinGW-w64 compiler you just need to unzip the "x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z" file to any location where you can run executables with your Windows User.Download the MinGW-w64 - for 32 and 64 bit Windows ( NOTE: please wait for the download to start automatically).Install the correct MinGW-w64 - for 32&64 bit Windows Compiler for VeriStand: 2018bMinGW-w64 C/C++ Compiler File Exchange 'MATLAB Support for MinGW-w64 C/C++ Compiler'. If the error still persist, please follow these steps:ġ. Matlab2017a MATLAB MinGW-w64 C/C++ Compiler4.9.2. This GCC compiler can also be helpful for other MathWorks products that require a C or C++. C and C++ applications compiled with MinGW-w64 GCC can be called from MATLAB using MEX. It includes a GCC compiler and related tools for compiling C and C++ applications for Windows. MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software. MinGW-w64 is a compiler suite for Windows based on the GNU tool chain. The first thing you need to do is to verify you're installing all the software and components needed to generate a Simulink® model for a Windows target. MSYS2 Software Distribution and Building Platform for Windows. This error will be present whenever the MATLAB® software pulls a wrong version for the GCC Compiler instead of the required WinGW-W64.