How to download a C++ complier to download a function from the file exchange

2 views (last 30 days)
I tied to download the RunLength function from the file exchange ( I need this function to run a code from a former colleague. However, I have got some problems downloading it correctly.
After Downloading WinRAR opens automatically. I then unzipped the files into the Matlab folder (C:/Program Files/MATLAB/R2015b). When I then try to run the example code, I get an error message stating:
"Compile: C:\Program Files\MATLAB\Runlength\RunLength.c
mex -O -largeArrayDims -D_LITTLE_ENDIAN -DHAS_HG2 -DMATLABVER=806 RunLength.c
*** Compilation failed:
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, see"
followed by a long section where Matlab is looking for different versions or parts of a 'Intel C++ Composer XE 2011 with Microsoft SDK 7.1 (C)' complier.
and at last the message
"The compilation failed! Possible solutions:
* Is a compiler installed and set up properly by: mex -setup?
* Try to compile manually:
cd('C:\Program Files\MATLAB\Runlength')
mex -O -largeArrayDims -D_LITTLE_ENDIAN -DHAS_HG2 -DMATLABVER=806 RunLength.c -v
* Or download the pre-compiled file RunLength.mexw64:
* Please send this report to the author.
== InstallMex: failed."
Then i tried running the command "InstallMex('RunLength.c')" but got the same error message again.
Then i downloaded the RunLength.mexw64 file from I could not open it by dopple klick, so I moved the file to the Matlab folder and tried running the function again. Got the same result.
Then I looked up the error message and decided to try to download a C++ Complier.
Trying to download the MinGW-w64 C/C++ Compile on failed to download. I got a " Download Failed: Received fatal alert: protocol_version" error message. Furthermore, when I try to open the Add-on Explorer, I get the message that "Add-On Explorer is no longer available for this release".
I am out of my options now. Did someone come across this problem before and can help me?
Best Wishes,

Answers (0)


Find more on MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!