File Exchange

image thumbnail

Setting Microsoft Visual C++ 2013 as default MEX compiler

version 1.2.0.0 (5.56 KB) by Adeel Ahmad
Configuration files for setting Microsoft Visual C++ 2013 as default compiler for MEX (x86/x64)

24 Downloads

Updated 14 Mar 2014

View Version History

View License

Copy the contents of the zip file into the following folder depending on your OS version:
for x86 "C:\Program Files\MATLAB\R2013a\bin\win32\mbuildopts"
or for x64 "C:\Program Files\MATLAB\R2013a\bin\win64\mbuildopts"

Then run 'mex -setup' in MATLAB command window

Cite As

Adeel Ahmad (2020). Setting Microsoft Visual C++ 2013 as default MEX compiler (https://www.mathworks.com/matlabcentral/fileexchange/45878-setting-microsoft-visual-c-2013-as-default-mex-compiler), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (19)

锋 王

Seunghwan Seol

Zhuge

Also works for 2012a to use VS2013. Thanks!

muthana naeem

please what is the zip file

Tesfamichael Getahun

I got it.

Tesfamichael Getahun

What zip file is to be copied?

chou fly

pradip throbole

shuimuquan··

li xiaofei

Arash Zaretalab

thank you for your sharing. I'm do it based on above fig but after uses as the coder, I am getting this error:
??? The current MEX compiler 'Microsoft Visual C++ 2013' is not supported.
Use mex -setup to select a supported compiler.

please help me

Kranthi R

XIE

THANKS to the authors! These files help me a lot!

WARNING: please put them in the MEXOPTS folder rather than MBUILDOPTS folder! I think the authors just made a small mistake :)

Joe Lillig

This really helped me - after I made one correction to the instructions in the Description section. The files must be copied to the mexopts folder, not the mbuildopts folder for "mex -setup" to acknowledge them.

Marc Llobet Capardon

Running matlab r2013a in a win 8.1. Unable to find/set a C-compiler. Any help? Thanks

Sarang Minhas

I am trying to use matlab functions in my simulink model but I am getting this error after selecting VS 2013 in mex -setup options
:
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.
Use 'mex -setup' to select a supported C-compiler.

Daniel Lagos

Thanks, you're great!

jyloup p

Awesome !
Now Matlab finds the compiler C/C++ Visual Studio 2013

Youcef Ladaycia

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!