Filter löschen
Filter löschen

Download Mex compilers

49 Ansichten (letzte 30 Tage)
bahar cham
bahar cham am 1 Dez. 2011
Beantwortet: Helen Victoria am 13 Dez. 2018
hello. I have found 2 very useful programs in Mathworks but i have problem for running. source of my problem is using mex and i should download sdk and visual c++ but i have problem for downloading. any advice? thanks i insulated c++ 2010 express successful(but i am not sure still!) and for sdk 7.1, i received this error “Setup could not find the file WinSDK_amd64\WinSDK_amd64.msi at any of the specified source locations” but without fixing it, i tried again and i received this error twice Installation of the "Microsoft Windows SDK XXXXXX" product has reported the following error: Fatal error during finally it wrote it has complete. but when i want use it mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler: [1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [2] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) [4] Microsoft Visual C++ 2005 SP1 [5] Microsoft Visual C++ 2008 SP1 [6] Microsoft Visual C++ 2010 [7] Microsoft Visual C++ 2010 Express
[0] None
Compiler: 7
Your machine has a Microsoft Visual C++ 2010 Express compiler located at C:\Program Files (x86)\Microsoft Visual Studio 10.0. Do you want to use this compiler [y]/n? y
Please verify your choices:
Compiler: Microsoft Visual C++ 2010 Express Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
Are these correct [y]/n? y
************************************************************************* Warning: MEX-files generated using Microsoft Visual C++ 2010 require that Microsoft Visual Studio 2010 run-time libraries be available on the computer they are run on. If you plan to redistribute your MEX-files to other MATLAB users, be sure that they have the run-time libraries. *************************************************************************
Trying to update options file: C:\Users\rayan negar\AppData\Roaming\MathWorks\MATLAB\R2011a\mexopts.bat From template: C:\PROGRA~1\MATLAB\R2011a\bin\win64\mexopts\msvc100freeopts.bat
Done . . .
************************************************************************ Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: Building with the -largeArrayDims option enables the new API. ************************************************************************
>> mex eig3volume.c Error: Could not find the compiler "cl" on the DOS path. Use mex -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Unable to locate compiler.
??? Error using ==> mex at 208 Unable to complete successfully.
  1 Kommentar
Jan am 1 Dez. 2011
It would be possible to answer, if you explain, what kind of problems occur at downloading the SDK and MSVC. Please insert these information by editing your question.
If you only want to compile the MEX-files, it is enough to install the SDK - the version depends on the Matlab release you are using.

Melden Sie sich an, um zu kommentieren.

Antworten (3)

Jan am 2 Dez. 2011
Of course you have to install at least the SDK successfully, before you can use it. I do not understand what exactly happens, but it seems, like the installation has failed. Then you have to try it again.

yaseen shaikh
yaseen shaikh am 7 Nov. 2018
Bearbeitet: yaseen shaikh am 7 Nov. 2018
Error using mex No supported compiler or SDK was found. For options, visit
Error in install_STB>compile_CVM (line 229) eval(mex_cmd);
Error in install_STB (line 44) compile_CVM(mexcompiler,stb,sun,par);
in windows 8.1 64bit OS trying to install the Sundails 3.2.1

Helen Victoria
Helen Victoria am 13 Dez. 2018
how to run mex-setup? its prompting error


Mehr zu Troubleshooting in MATLAB Compiler SDK finden Sie in Help Center und File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by